Hello
I finished the aov and post-hoc test. And I need the data of means and Standard deviation for reporting. While I can locate the means by model.tables(nes2000.aov,type='means"). I don't know how to calculate standard deviation in R.
I tried the below command I found online But it pops on error "Error in aggregate.data.frame(lhs, mf[-1L], FUN = FUN, ...) . I don't know what went wrong.
data(nes2000)
nes2000$party<-factor(nes2000$party)
fm<-nes2000$pknow~nes2000$party
f<-function(x) c(mean(x),sd=sd(x))
aggregate(fm,data=nes2000)
argument "FUN" is missing, with no default