powered by
Get the number of unique values in an input vector.
uniqlen(vec, na.rm = TRUE)
A vector of any type.
If TRUE, remove missing values.
TRUE
Number of unique values.
# NOT RUN { x <- c(1, 3, 1, 1, NA, 2, 2, 3, NA, NA, 1, 3, 1) uniqlen(x) uniqlen(x, na.rm = FALSE) # }
Run the code above in your browser using DataLab