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. ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.