Sets or removes names
Value
set_names0()
:x
withnm
values assigned to names (ifx
isNULL
,NULL
is returned)remove_names()
:x
without namesnames_switch()
:character
vector of equal lengthx
where names and values are switched
Sets or removes names
set_names0()
: x
with nm
values assigned to names (if x
is NULL
,
NULL
is returned)
remove_names()
: x
without names
names_switch()
: character
vector of equal length x
where names and
values are switched