View source: R/helperFunctions.R
NrUnique | R Documentation |
Number of unique elements in a vector
NrUnique(x, na.rm = TRUE)
x |
object of type |
na.rm |
logical indicating if missing values have to be removed. Default to |
vector with the number of unique elements
set.seed(1)
x = sample(letters, 50, TRUE)
NrUnique(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.