powered by
Sets or removes names
set_names0(x, nm = x)names_switch(x)
names_switch(x)
set_names0(): x with nm values assigned to names (if x is NULL, NULL is returned)
set_names0()
x
nm
NULL
remove_names(): x without names
remove_names()
names_switch(): character vector of equal length x where names and values are switched
names_switch()
character
A vector of values
A vector of names