R/utils-basic.R
uniq.Rd
only keep unique vector values and its names
uniq(x)
vector
x <- c(a = 1, b = 2, c = 3, b = 2, a = 1) uniq(x) #> a b c #> 1 2 3