Description Usage Arguments Value See Also Examples
it may make sense to take this out and just
use the plyr::rename
function
from the plyr
package
1 | rename.vars(vnames, fromvars, tovars)
|
vnames |
the list of names to remap |
fromvars |
the current variable name |
tovars |
the new variable name (positions in this vector should correspond to the ones in fromvars) |
a vector with vnames
renamed according to
the mapping from fromvars
to tovars
1 2 3 4 5 6 | ## Not run:
colnames(my.data) <- rename.vars(colnames(my.data),
c("old_var1", "old_var2"),
c("new_var1", "new_var2"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.