Created
July 24, 2014 13:48
-
-
Save bfoste01/7a63896332290c01323f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get variable names for mtcars dataset in rbase | |
colnames(mtcars) | |
#if yow want to recode variables the lazy way | |
fix(mtcars) #downside is that it isn't hard coded, and therefore not reproducible | |
#use the reshape package | |
library(reshape) | |
test <- rename(mtcars, c(disp="renamedisp")) #reproducible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment