I am also compairing 2 things with each other. x = c(1, 5, 7, 9) y = c(2, 7, 9, 10, 11)
intersect(x, y) Output will be: 7, 9. Hope it helped. :) -- View this message in context: http://r.789695.n4.nabble.com/compare-mean-tp4576372p4578007.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.