[R] grep function with patterns list...

Anupam Tyagi AnupTyagi at yahoo.com
Mon Oct 16 20:15:06 CEST 2006


Hi Stephane,

Stéphane CRUVEILLER <scruveil <at> genoscope.cns.fr> writes:
> is there a way to pass a list of patterns to the grep function? I
> vaguely remember something with %in% operator...

I think you are looking for the %in% and %nin% which are part of Design package,
and also in Hmisc library. You have to install and load these packages to access
these functions.

Anupam.



More information about the R-help mailing list