Last active
February 2, 2016 21:22
-
-
Save aurielfournier/080f90f16d14b2149a7c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| dataframe <- data.frame(silly1 = NA, silly2=NA) | |
| # silly1 silly2 | |
| #1 NA NA | |
| sepdf <- data.frame(old=c("a","b"), new=c("d","e") | |
| # old new | |
| #1 a d | |
| #2 b e | |
| colnames(dataframe) <- sepdf$new | |
| # d e | |
| #1 NA NA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment