[R] Check for presence of object in group of objects
christoph.heibl at gmx.net
Wed Jan 31 11:00:42 CET 2007
must be simple, but i got stuck on this...
I´ve been trying around for some time, but I could not find a
straigthforward way to do this:
How can one ask if a certain object is element of a certain group of
objects, e.g stored in a vector?
x <- c("a", "b", "c")
# is there a simple function which returns:
is "a" part of x?
is "d" part of x?
Thanks a lot
More information about the R-help