Sets the names (or colnames) of x
to nm
.
If nm
is a function, it is used to transform the already existing names of x
.
Arguments
- x
(
any
.)
Object to set names for.- nm
(
character()
|function()
)
New names, or a function which transforms already existing names.- ...
(
any
)
Passed down tonm
ifnm
is a function.