[R] searching a vector

Arend P. van der Veen apv at capital.net
Fri Apr 30 15:33:48 CEST 2004


I have a integer vector x that contains a unique set of numbers: 

x <- c(1,2,4,6,8,10,12)

Is there a simple test I can use to determine if an integer such as 6 is
contained in x ?  

Thanks in advance for any help,

More information about the R-help mailing list