Dear list,
I am trying to use gregexpr to see if entries in a dataframe have
either of two possible values for a string.
here's an example
text-c(fat, rat, cat, dog, log, fish)
If I just wanted to find if any one of the elements in text match the
pattern at I would do
gregexpr(\\at, text)
gregexpr(\\at|\\og, text)
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Corey Sparks
Sent: Wednesday, February 25, 2009 11:50 AM
To: R Help
Subject: [R] Using gregexpr with multiple search elements
Dear list,
I am
2 matches
Mail list logo