duplicateIndices: Finds the indices of the duplicated events of a vector

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/auxiliar.R

Description

Finds the indices of duplicated elements in the vector given.

Usage

1

Arguments

vec

Vector of identifiers presumably duplicated

Details

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.

Value

The format is determined by the simplify2array

Author(s)

Llu<c3><ad>s Revilla

See Also

removeDup

Examples

1
2
3
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

BioCor documentation built on Nov. 8, 2020, 4:56 p.m.