R/dupes.R
dupes.Rd
Extract duplicated values
dupes(x) notDupes(x)
vector.
vector
Modified object. Only duplicated values are returned, made unique. Returns empty vector of length 0 when no duplicates are detected.
Updated 2023-09-26.
goalie::isDuplicate().
goalie::isDuplicate()
duplicated().
duplicated()
## character ==== vec <- c("ccc", "aaa", "bbb", "ccc", "bbb") x <- dupes(vec) print(x) #> [1] "ccc" "bbb" x <- notDupes(vec) print(x) #> [1] "aaa"