renameVar | R Documentation |
The function for renaming one or several variables in a dataframe.
renameVar(data, renames)
data |
A dataframe. |
renames |
A list with oldnames and newnames (e.g, |
A dataframe with renamed columns.
Marjan Cugmas
renameVar(mtcars, list("cyl" = "Cylinders", "wt" = "Weight", "am" = "Transmission"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.