With format_corr() you can format correlation statistics generated from
cor.test() output.
This is now an internal function superceded by format_stats(), which we
recommend using instead.
format_corr(x, digits, pdigits, pzero, full, italics, type, ...)A character string of statistical information formatted in Markdown or LaTeX.
An htest object from cor.test(), t.test(), or wilcox.test().
Number of digits after the decimal for means, confidence intervals, and test statistics.
Number of digits after the decimal for p-values, ranging between 1-5 (also controls cutoff for small p-values).
Logical value (default = FALSE) for whether to include leading zero for p-values.
Logical value (default = TRUE) for whether to include means and confidence intervals or just test statistic and p-value.
Logical value (default = TRUE) for whether p label should be italicized.
Type of formatting ("md" = markdown, "latex" = LaTeX).
Additional arguments passed to methods.
Other functions for printing statistical objects:
format_bf(),
format_chisq(),
format_stats(),
format_stats.BFBayesFactor(),
format_stats.aov(),
format_stats.easycorrelation(),
format_stats.htest(),
format_stats.lm(),
format_stats.lmerModLmerTest(),
format_stats.merMod(),
format_ttest()
# format_stats(cor.test(mtcars$mpg, mtcars$cyl))
Run the code above in your browser using DataLab