lunique | R Documentation |
Number of unique values
lunique(x, na.rm = FALSE)
x |
a vector |
na.rm |
logical; if |
x <- c(1:5, NA)
lunique(factor(x))
lunique(x, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.