R/grep.R

### =========================================================================
### The grep() and grepl() generics
### -------------------------------------------------------------------------
###
### Need to explicitly define those generics otherwise the implicit generics
### in package "base" would dispatch on all their arguments. Here we set
### dispatch on the first 2 args ('pattern', 'x').

setGeneric("grep", signature = c("pattern", "x"))

setGeneric("grepl", signature = c("pattern", "x"))

Try the BiocGenerics package in your browser

Any scripts or data that you put into this service are public.

BiocGenerics documentation built on May 2, 2018, 4:18 a.m.