names_values_switch: Switch the names and the values of a vector

View source: R/utils_vectors.R

names_values_switchR Documentation

Switch the names and the values of a vector

Description

Switch the names and the values of a vector

Usage

names_values_switch(x)

Arguments

x

named object

Value

obj

See Also

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

Examples

names_values_switch(c(a = 1, b = 2))

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