duplicateIndices | R Documentation |
Finds the indices of duplicated elements in the vector given.
duplicateIndices(vec)
vec |
Vector of identifiers presumably duplicated |
For each duplication it can return a list or if all the duplication events are of the same length it returns a matrix, where each column is duplicated.
The format is determined by the simplify2array
LluĂs Revilla
removeDup()
duplicateIndices(c("52", "52", "53", "55")) # One repeated element
duplicateIndices(c("52", "52", "53", "55", "55")) # Repeated elements
duplicateIndices(c("52", "55", "53", "55", "52")) # Mixed repeated elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.