Re: [R] grep/regexp

2015-12-01 Thread David Winsemius
> On Dec 1, 2015, at 2:47 PM, Ravi Varadhan wrote: > > Hi, > I would appreciate some help with using grep(). I have a bunch of variables > in a data frame and I would like to select some of them using grep. Here is > an example of what I am trying to do: > > vars <-

[R] grep/regexp

2015-12-01 Thread Ravi Varadhan
Hi, I would appreciate some help with using grep(). I have a bunch of variables in a data frame and I would like to select some of them using grep. Here is an example of what I am trying to do: vars <- c("Fr_I_total", "Fr_I_percent_of_CD4", "Ki.67_in_Fr_I_percent_of_Fr_I",