Change names, colnames or rownames of single items or a list of items
ChangeNames(
x,
names,
single.items = FALSE,
row.names = FALSE,
param = NULL,
where = NULL,
environment = NULL
)
list, vector, matrix, dataframe or a list of such items
names to insert
logical, indicating whether or not to use names rather than colnames or rownames, Default: FALSE
logical, indicating whether or not to use rownames rather than colnames, Default: FALSE
Variable name, Default: NULL
select parents, Default: NULL
select reference environment, Default: NULL
returns Named items # ABC <- c("1","2","3") # "1" "2" "3" # ChangeNames(ABC, names = c("A","B","C") , single.items = TRUE) # A B C # "1" "2" "3"