[R] unique vs duplicate problem
descostes at ciml.univ-mrs.fr
Mon Jul 9 18:42:28 CEST 2012
Let say I have a numeric vector: x <- c(1, 2, 3, 3).
I want on one hand numbers which are not duplicated ie "1,2" and duplicated
so I did:
FALSE FALSE FALSE TRUE
1 2 3
which is not what I want. Is there a function in R to have the following
FALSE FALSE TRUE TRUE
I could do it by programming some loops but I reckon somebody programmed a
View this message in context: http://r.789695.n4.nabble.com/unique-vs-duplicate-problem-tp4635868.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help