Description Usage Arguments Value Examples
Count the number of distinct values in a data frame/matrix/vector. If a data frame or matrix is passed, counts the number of distinct values by column. If a vector is passed, just counts the number of distinct values.
1 | count_distinct(data, use_base = TRUE)
|
data |
A data frame/matrix/vector. |
use_base |
Whether to use base |
Integer vector, named for data frames or matrixes with column names.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.