all_diff tests if all elements are different. The elements could be either
from an atomic vector, list vector, or list. If x does not have any unique
values (e.g., NULL), then FALSE is returned.
Usage
all_diff(x)
Value
logical vector of length 1 specifying whether all the elements in x
are the same (TRUE) or not (FALSE).
Arguments
x
atomic vector, list vector, or list.
Details
The machine precision of all_diff for numeric vectors is the same as
unique. This can causes a problem for some floating-point numbers.