| n_unique | R Documentation |
Internal helper to count the number of distinct values in a vector. Works for numeric, character, and factor vectors.
n_unique(x, na.rm = FALSE)
x |
A vector. |
na.rm |
Logical (default |
Integer. The number of unique values in x (including NA as one
distinct value when na.rm = FALSE).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.