Skip to content
Prev 174403 / 398506 Next

Subsetting data where the condition is that the value of some column contains some substring

Thanks, Jim (and Mark, who replied off-list) -- that does the trick. I
had tried using an index expression with grep, but that failed in the
same way as the subset method. It is still rather mysterious why this
works with regexpr but not with grep :)

-Max
On Fri, Mar 20, 2009 at 7:57 PM, jim holtman <jholtman at gmail.com> wrote: