formatPval | R Documentation |
Just yapf – yet another p-value formatter...
It is a wrapper around format.pval
,
such that by default eps = 1e-4
, scientific = FALSE
,
digits = if (p<10*eps) 1 else 2
, and nsmall = 2
.
formatPval(pv, eps = 1e-4, scientific = FALSE, ...)
pv |
a numeric vector (of p-values). |
eps |
a numerical tolerance, see |
scientific |
see |
... |
further arguments passed to |
The character vector of formatted p-values.
formatPval(c(0.9, 0.13567, 0.0432, 0.000546, 1e-8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.