R/Functions.r
count.unique.Rd
Count the number of unique items ion a vector x
count.unique(x)
a vector
the number of unique items in x.
x
Murray Jorgensen
x = c(1, 2, 3) count.unique(x) #> [1] 3 x = c(1, 1, 1, 2, 3) count.unique(x) #> [1] 3