I'm not familiar with R at all but have to run this code for uni, not able to make it work. I want to do pairwise comparison for my ANOVA test, any help on how to resolve this would be greatly appreciated.
This is my code:
comp <- emmeans(anova_A, specs=pairwise ~ mydata$`Which group of people influences your decisions about sustainable food options the most?`, model="univariate")
And it shows this error message:
Error in str2lang(x) : :1:21: unexpected symbol 1: pairwise~mydata.Av1.
Which group of people influences your decisions about sustainable food options the most?