nunique | R Documentation |
Returns the number of unique values in a vector.
nunique(x)
x |
A vector. |
An integer equal to length(unique(x))
.
Benjamin Rich <mail@benjaminrich.net>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.