apa: APA Formatting for RMarkdown Reports

Description Usage Arguments See Also


A wrapper around the *_apa functions, providing a convenient way to use the formatters in inline code in RMarkdown documents.


apa(x, effect = NULL, format = "rmarkdown", print = FALSE, ...)



An R object. Must be a call to one of afex::aov_4, afex::aov_car, afex::aov_ez, chisq.test, cor.test, ez::ezANOVA or t_test.


(only applicable if x is an ANOVA) Character string indicating the name of the effect to display. If is NULL, all effects are reported (default).


Character string specifying the output format. One of "text", "markdown", "rmarkdown", html, "latex" or "docx".


Logical indicating whether to return the result as an R object (FALSE) or print using cat (TRUE).


Further arguments passed to other methods

See Also

anova_apa, chisq_apa, cor_apa, t_apa

Search within the apa package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.