data('ToothGrowth')
dat <- ToothGrowth
dat$dose <- factor(dat$dose)
results<-jmv::anovaOneW(formula = len ~ dose, data = dat,
welchs = TRUE, fishers =TRUE)
When I run:
results$anova
The table printed in the console is really what I want.
But when get the dataframe using:
results$anova$asDF
the table stucture is not what I want, and it is not publication-ready.
So how can I transform the results$anova table to a data frame, and keep the table structure?
Because we need the table to be inserted into word document, or into a rmarkdown rather than get the text in console.
My code:
When I run:
results$anova
The table printed in the console is really what I want. But when get the dataframe using:results$anova$asDF
the table stucture is not what I want, and it is not publication-ready. So how can I transform theresults$anova
table to a data frame, and keep the table structure? Because we need the table to be inserted into word document, or into a rmarkdown rather than get the text in console.