Re: [R] Not-In operator

2010-06-28 Thread Erik Iverson
Giving a reproducible example would likely lead to a solution quickly. Colton Hunt wrote: I would like to use grep to return all the lines of a data frame that do not contain the letters HD. I have tried the ^ inside brackets as well as !. The data frame is one column consisting of spaces,number

Re: [R] Not-In operator

2010-06-28 Thread Phil Spector
Colton - Have you looked at the invert= argument of grep()? (In regular expressions, ^ means "beginning of string", and ! has no special meaning.) - Phil Spector Statistical Computing Facility

[R] Not-In operator

2010-06-28 Thread Colton Hunt
I would like to use grep to return all the lines of a data frame that do not contain the letters HD. I have tried the ^ inside brackets as well as !. The data frame is one column consisting of spaces,numbers, and letters with several thousand rows. Thank you! Colton [[alternative HTML vers