Hi,
I tried to run the code below to rename the column titles of my dataframe. I definitely have the same number of columns as I have names given. Cannot understand why this seems to work sometimes and not work other times. Have tried putting spaces in or switching the ' to a ". Sometimes this makes it work, only for it to fail the next time I run it. Feel like its gaslighting me!!!
names(TestDataModSMD)<- c(‘Article’,’Year’,’Sponsor’,’Species’,’Cry1A’,’OtherCry’,’Order’,’FuncGrp’,’Pollinator’,’Randomised’,’ContMean’,’ExptMean’,’ContN’,’ExptN’,’ContSD’,’ExptSD’,’yi’,’vi’)
The error I get is:
ERROR: <text>
Should mention that I'm using metafor, Rcmdr and xlsx packages.
Very new to R. Working on meta-analysis dissertation to hand in on Monday!!! Any help would be amazing.
Thank you all.
Annabel