I have something like testDF <- data.frame(v1 = c( 1, 2, 3, 4, 4, 4, 4, 5, 5, 5, 5, 7, 7 ,9),v2 = c("a","b","c","d","d","e","e","e","d","d","a","a","a","b") )
and I need for each obs on v1, to get rid of the duplicates in v2... to get something like
testDF <- data.frame(v1 = c( 1, 2, 3, 4, 4, 5, 5, 5, 7, 9),
v2 = c("a","b","c","d","e","e","d","a","a","b") )
any idea on how can I do that??? thanks!