count_up | R Documentation |
This function tallies up the number of unique observations within a vector. Input vector can be comprised of any data type
count_up(x)
x |
Vector of values to tally up |
integer representing number of non-missing values in a vector
x = 1:10
count_up(x)
x[c(1,5,7)] = NA
count_up(x)
x = sample(1:5, size = 100, replace = T)
count_up(x)
y = x[x != 5]
count_up(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.