unique_with_names: Unique a vector, preserving the names of the first original...

View source: R/utils_vectors.R

unique_with_namesR Documentation

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

Description

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

See Also

Other vectors: len_unique(), names_values_switch(), rle_df(), rle_groups(), rle_seq(), sort_by_names(), true_names(), unify_vec_preserve_order(), vlookup(), vlookup_from_ref(), zchar_remove()

Examples

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

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.