| apa7_tbl | R Documentation |
apa_flextableThe tibbles returned by apa_anova(), apa_chisq(), apa_cor(), apa_descriptives(), apa_factor_cor(), apa_htest(), apa_loadings(), apa_means(), apa_contrasts(), apa_slopes(), apa_parameters(),
apa_performance(), apa_performance_comparison(), apa_reliability(), apa_collinearity(), apa_n_factors(), apa_publication_bias(), and apa_subgroups() have class
apa7_tbl. They are ordinary
tibbles for post-processing with dplyr, but in knitr and Quarto documents
they are rendered as an apa_flextable() automatically. In the console they
print as tibbles.
## S3 method for class 'apa7_tbl'
print(x, ...)
## S3 method for class 'apa7_tbl'
knit_print(x, ...)
x |
an |
... |
arguments passed to the next method |
The apa7.print option (also set with apa7_defaults(print = ))
controls this behavior:
"auto" (default): flextable in knitr/Quarto, tibble in the console.
"flextable": flextable everywhere.
"tibble": tibble everywhere.
To render with non-default settings, pass the table to apa_flextable()
explicitly, which always returns a flextable.
x, invisibly, for print. A knit_asis or flextable output for knit_print.
fit <- lm(mpg ~ cyl + wt, data = mtcars)
# Prints as a tibble in the console
apa_parameters(fit)
# It is still a tibble, so it can be post-processed
apa_parameters(fit) |>
dplyr::filter(Variable != "Constant") |>
apa_flextable()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.