n_distinct | R Documentation |
This is a wrapper to length(unique(x))
or
lengths(unique(x))
if x
is a List object
n_distinct(var)
var |
a vector of values |
an integer vector
x <- CharacterList(c("a", "b", "c", "a"), "d")
n_distinct(x)
n_distinct(unlist(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.