Extracting standard Deviation after aov() models

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.