Skip to contents

only keep unique vector values and its names

Usage

uniq(x)

Arguments

x

vector

Value

vector

Examples


x <- c(a = 1, b = 2, c = 3, b = 2, a = 1)

uniq(x)
#> a b c 
#> 1 2 3