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
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
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
3 matches
Mail list logo