After searching for a while, I know that this question has not been answered yet. Assume that I have the following vector
v <- c("a", "b", "b", "c","c","c", "d", "d", "d", "d")
How do I find those values having more than 1 duplicates
(should be "c","c","c", "d", "d", "d", "d")
and more than 2 duplicates
(should be "d", "d", "d", "d"
)
Function duplicated(v)
only returns values having duplicates.