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.