nice_p | R Documentation |
Format p values
nice_p(p, equal_sign = FALSE, digits = 3, stars = FALSE)
p |
Vector of p values. |
equal_sign |
If TRUE an equal sign is set before p values. |
A character vector with nicely formatted p values
p <- c(0.04, 0.9, 0.10, 0.001, 1, NA)
nice_p(p)
paste0("p", nice_p(p, equal_sign = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.