View source: R/basic_functions.R
ChangeNames | R Documentation |
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 )
x |
list, vector, matrix, dataframe or a list of such items |
names |
names to insert |
single.items |
logical, indicating whether or not to use names rather than colnames or rownames, Default: FALSE |
row.names |
logical, indicating whether or not to use rownames rather than colnames, Default: FALSE |
param |
Variable name, Default: NULL |
where |
select parents, Default: NULL |
environment |
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.