R/predicates.R
is_all_distinct.Rd
Check if all values in a vector are distinct
is_all_distinct(x)
A vector
TRUE if the vector has all unique values
is_all_distinct(c(1:5)) # TRUE #> [1] TRUE is_all_distinct(c(1, 1, 2)) # FALSE #> [1] FALSE