dupes: Extract duplicated values

View source: R/dupes.R

dupesR Documentation

Extract duplicated values

Description

Extract duplicated values

Usage

dupes(x)

notDupes(x)

Arguments

x

vector.

Value

Modified object. Only duplicated values are returned, made unique. Returns empty vector of length 0 when no duplicates are detected.

Note

Updated 2023-09-26.

See Also

  • goalie::isDuplicate().

  • duplicated().

Examples

## character ====
vec <- c("ccc", "aaa", "bbb", "ccc", "bbb")
x <- dupes(vec)
print(x)
x <- notDupes(vec)
print(x)

acidgenomics/AcidBase documentation built on Jan. 28, 2024, 2:59 a.m.