[R] How to get the duplicated elements from a vector?

Leon Yee yee.leon at gmail.com
Wed Oct 29 14:47:12 CET 2008


Dear all,

     How can I get the duplicated elements from a vector? For example,
x <- c("yes", "no", "yes", "yes", "no", "not sure"), how can I filter 
out all the elements which occured >=2 times?

     Thanks for any help!

Regards,
Leon



More information about the R-help mailing list