View source: R/format_digits.R
format_pval | R Documentation |
Format p-value
format_pval(pvals, sig.limit = 10^(-digits), digits = 3)
pvals |
A numeric value or vector of p-values |
sig.limit |
Lower bound for precision; smaller values will be shown as < sig.limit |
digits |
Number of digits past the decimal point to keep |
pv <- c(-1, 0.00001, 0.0042, 0.0601, 0.1335, 0.4999, 0.51, 0.89, 0.9, 1)
format_pval(pv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.