Description Usage Arguments Examples
Rename multiple df variables based on two lists of values. If a name contained in names(dataset) is not found in renamelist[1], it is left as is.
1 | renamevars(dataset, renamelist, renamelistfile)
|
dataset |
Data set whose column names are to be changed |
renamelist |
List of two vectors of same lenght, or df with two columns |
csv |
with two columns |
1 2 | renamevars(dataframe, renamelist = list(c('oldname'),c('newname'))
renamevars(dataframe, renamelistfile = './tableofnames.csv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.