Description Usage Arguments Value Author(s) Examples
Function rename.vars
Source code from gdata as gdata is unmaintained since 2017-06-06
Rename variables in a dataframe
1 | rename.vars(data, from = "", to = "", info = TRUE)
|
data |
frame to be modified. |
from |
character vector containing the current name of each variable to be renamed. |
to |
character vector containing the new name of each variable to be renamed. |
info |
boolean value indicating whether to print details of the removal/renaming. Defaults to TRUE. |
returns the updated data frame with variables listed in from renamed to the corresponding element of to.
Don MacQueen (package gdata), macq\@llnl.gov.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.