R 3.2.4 Plyr updated 2016-03-10
I am trying to rename columns in a large data set and running into the "The following from
values were not present in x
:" error.
The columns from origin export are atrocious, which is why I'm using plyr rename, but it seems that even rename is having trouble. Example trouble column is [,3] in the linked data set and is titled:
"Experimental.or.quasi.experimental..evaluation..compares.mentored.youth.to.a.comparison.or.â.œcontrolâ...group.of.non.mentored.youth..NS8"
Download link to csv here: Code below:
test<-read.csv(file="test.csv",header=TRUE)
library(plyr)
test2<-rename(test,
c(
"Experimental.or.quasi.experimental..evaluation..compares.mentored.youth.to.a.comparison.or.â.œcontrolâ...group.of.non.mentored.youth..NS8"="new"))