> x[x %in% y] [1] 2 3 >
2012/1/8 Philipp Chapkovski <chapkov...@gmail.com>: > x<-1:11 > y<-2:3 > > is there a way to do something like > x[x==y] > (which actually produce error)? > I am really got stuck > -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.