R/ExportedFuncs.R
unique_only.Rd
Unique values in a vector
unique_only(vec)
a vector
sorted unique values
unique
vec <- c(4,2,3,5,4,4,4) unique_only(vec) #> [1] 2 3 5 # see the difference from unique unique(vec) #> [1] 4 2 3 5 vec <- letters[1:5] unique_only(vec) #> [1] "a" "b" "c" "d" "e"