| nuniq | R Documentation |
This function takes a vector and returns the number of unique values in that vector.
nuniq(x)
x |
A vector. |
This function is just shorthand for length(unique(x)), with a shorter name for reference in the vtable or sumtable summ option.
x <- c(1, 1, 2, 3, 4, 4, 4)
nuniq(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.