The native duplicated function determines which elements of a vector
or data frame are duplicates of elements already observed in the vector or the
data frame provided. Therefore, only the second occurence (or third or nth)
of an element is considered as a duplicate.
duplicated2 is similar but will also mark the first occurence as a
duplicate (see examples).
Usage
duplicated2(x)
Value
A logical vector indicated wich elements are duplicated in x.