R/nUnique.R
nUnique.Rd
Number of Unique Values
nUnique(x)
R object that function unique can be applied on
unique
Number of unique values in x (integer)
x
nUnique(1:3) #> [1] 3 nUnique(c(1, 1, 2)) #> [1] 2