Skip to contents

Unique a vector, preserving the names of the first original entries

Usage

unique_with_names(x)

Arguments

x

vec with names

Value

vec of the same type

Examples

unique_with_names(c(N = "n", b = "b", A = "n"))
#>   N   b 
#> "n" "b"