print_pval | R Documentation |
This function takes a numeric value and rounds it, then it formats it in order to be reported in an academic report written in LaTeX or markdown. It is most useful for R output that is more than three decimal places long.
print_pval(x, latex = TRUE)
x |
(numeric) A p-value to round |
latex |
(Logical) If true, output is appropriate for LaTeX. Otherwise formatting is for markdown. |
print_pval(0.03765)
print_pval(0.0000001, latex = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.