style_pvalue | R Documentation |
Style p-values
style_pvalue(
x,
digits = 1,
prepend_p = FALSE,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
...
)
x |
( |
digits |
( |
prepend_p |
(scalar |
big.mark |
( |
decimal.mark |
( |
... |
Arguments passed on to |
A character vector of styled p-values
Daniel D. Sjoberg
pvals <- c(
1.5, 1, 0.999, 0.5, 0.25, 0.2, 0.197, 0.12, 0.10, 0.0999, 0.06,
0.03, 0.002, 0.001, 0.00099, 0.0002, 0.00002, -1
)
style_pvalue(pvals)
style_pvalue(pvals, digits = 2, prepend_p = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.