nice_p | R Documentation |
Formatting function
for consistent p-value reporting.
You can choose to print the leading zero (e.g. 0.01
) or not
(e.g. .01
) with print_zero
.
nice_p(p_val, print_zero = FALSE)
p_val |
A numeric. The p-value to format. |
print_zero |
A logical. Should leading zero be printed? (see Details) |
A character vector with the formatted p-value(s)
pvals <-
c(0.056548, 0.0002654, 0.816546, 0.0493321)
nice_p(pvals)
nice_p(pvals, print_zero = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.