On Nov 11, 2004, at 8:33 AM, Alexander Sokol wrote:
Say I have two vectors,
a<-c(1,7,4,5,9,11) b<-c(7,4,9)
I would like to create a vector containing the elements in a which are not in
b.
> a[!(a %in% b)] [1] 1 5 11
Sean
______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html