count.unique | R Documentation |
Count the number of unique items ion a vector x
count.unique(x)
x |
a vector |
the number of unique items in x
.
Murray Jorgensen
x = c(1, 2, 3) count.unique(x) x = c(1, 1, 1, 2, 3) count.unique(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.