Skip to content

Instantly share code, notes, and snippets.

@aurielfournier
Last active February 2, 2016 21:22
Show Gist options
  • Select an option

  • Save aurielfournier/080f90f16d14b2149a7c to your computer and use it in GitHub Desktop.

Select an option

Save aurielfournier/080f90f16d14b2149a7c to your computer and use it in GitHub Desktop.
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