Returns the number of unique vector elements.
See also
nlevels(), isLowCardinality() to check whether x
has at most a given number of unique values, without counting
all of them first.
Other data.predicate:
flags(),
isDichotomous(),
isEuclid(),
isLowCardinality(),
isNumeric(),
isWholeLike(),
isZero()
