pretty_pval | R Documentation |
Pretty print for p-values.
pretty_pval(pvalue, digits = 3L, space = FALSE, equal = FALSE)
pvalue |
A numeric vector of p-values. |
digits |
number of digits returned (3 by default). |
space |
Logical specifying whether a space should be inserted between number and operator (= or <, default to FALSE). |
equal |
add = where needed? |
The function returns a string with the pretty printed p-values.
pval1 <- c(3, NA, 1e-01, 1e-02, 1e-03, 1e-04, 1e-05)
pretty_pval(pval1, space = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.