View source: R/utils_vectors.R
names_values_switch | R Documentation |
Switch the names and the values of a vector
names_values_switch(x)
x |
|
obj
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()
names_values_switch(c(a = 1, b = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.