Updated: Plyr rename() not recognizing identical 'x'; Error: The following `from` values were not present in `x`:

扶醉桌前 提交于 2019-11-29 17:48:37

Try using setNames instead:

library(plyr)
test2 <- rename(test, setNames( "new", names(test[3])))

names(test2)

[1] "Implementation.evaluation..examines.how.well.or.efficiently.services.were.delivered.to.participants..such.as.tracking.mentor.mentee.meetings..participation.in.trainings..etc....NS8"
[2] "Outcome.evaluation..examines.changes.in.participants.served.using.pre.post.data.collection..NS8"                                                                                     
[3] "new"                                                                                                                                                                                 
[4] "Return.on.investment.study..examines.long.term.impacts.from.an.economic.perspective..often.in.relation.to.program.costs..NS8"   
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!