format.pval | R Documentation |
format.pval
is intended for formatting p-values.
format.pval(pv, digits = max(1, getOption("digits") - 2), eps = .Machine$double.eps, na.form = "NA", ...)
pv |
a numeric vector. |
digits |
how many significant digits are to be used. |
eps |
a numerical tolerance: see ‘Details’. |
na.form |
character representation of |
... |
further arguments to be passed to |
format.pval
is mainly an auxiliary function for
print.summary.lm
etc., and does separate formatting for
fixed, floating point and very small values; those less than
eps
are formatted as "< [eps]"
(where ‘[eps]’
stands for format(eps, digits)
).
A character vector.
format.pval(c(stats::runif(5), pi^-100, NA)) format.pval(c(0.1, 0.0001, 1e-27))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.