Skip to content
Prev 299549 / 398506 Next

unique vs duplicate problem

Hello,

Maybe this function.


fun <- function(x) x %in% x[duplicated(x)]

x <- c(1, 2, 3, 3)
fun(x)


Hope this helps,

Rui Barradas

Em 09-07-2012 17:42, Nico902 escreveu: