Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transform the jmv results to data frame or any other object such as flextable #378

Open
zhaohongxin0 opened this issue Mar 7, 2023 · 1 comment

Comments

@zhaohongxin0
Copy link

My code:

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.

@jonathon-love
Copy link
Member

hi,

i'm not sure. if i want to paste into a word document, i just use jamovi itself.

we wrote jmv for just performing analyses, so we've never really looked into the publication ready side of things.

jonathon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants