powered by
Unique values in a vector
unique_only(vec)
sorted unique values
a vector
unique
vec <- c(4,2,3,5,4,4,4) unique_only(vec) # see the difference from unique unique(vec) vec <- letters[1:5] unique_only(vec)
Run the code above in your browser using DataLab