Skip to content
Prev 66934 / 398506 Next

is there a function like %in% for characters?

Or, using the %foo%-style functions:

"%charin%" <- function(x, y) regexpr(x, y) != -1
[1] TRUE
[1] FALSE

Cheers,
Rich
On Sat, 2 Apr 2005 22:54:35 -0500, "Liaw, Andy" <andy_liaw at merck.com> wrote: