The difference here to duplicated()
is that also the first occurrence
of a duplicate is flagged as TRUE
.
h_all_duplicated(x)
a vector or a data frame or an array or NULL
.
Logical vector flagging all occurrences of duplicate values as TRUE
.
h_all_duplicated(c("a", "a", "b"))
#> [1] TRUE TRUE FALSE
duplicated(c("a", "a", "b"))
#> [1] FALSE TRUE FALSE