Description Usage Arguments Author(s) Examples
Count unique entries in a vector of in all columns of a data.frame
1 | n_unique(x)
|
x |
a vector or data.frame |
Johan Junkka johan.junkka@gmail.com
1 2 3 4 5 6 | x <- data.frame(
'a' = rep(1:4, 2),
'b' = rep(1:2, 4)
)
n_unique(x)
n_unique(x$a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.