regex -> negate a word
That's an entirely different point from whether regular expressions can do it as grep -v is just another way to do it without using a regular expression to specify the entire job.
On Sun, Jan 18, 2009 at 5:02 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
On 19/01/2009, at 10:44 AM, Gabor Grothendieck wrote:
Well, that's why it was only provided when you insisted. This is not what regexp's are good at. On Sun, Jan 18, 2009 at 4:35 PM, Rau, Roland <Rau at demogr.mpg.de> wrote:
Thanks! (I have to admit, though, that I expected something simple)
It may not be what regexp's are good at, but the grep command in unix/linux
does what is required *very* simply via the ``-v'' flag. I conjecture that
it would not be difficult to add an argument with similar impact to the
grep() function in R.
cheers,
Rolf Turner
######################################################################
Attention:This e-mail message is privileged and confidential. If you are not
theintended recipient please delete the message and notify the sender.Any
views or opinions presented are solely those of the author.
This e-mail has been scanned and cleared by
MailMarshalwww.marshalsoftware.com
######################################################################