formatP | R Documentation |
A wrapper to sensibly control the printing of p-values
because I was frustrated with playing with round
.
Calls format
instead now.
formatP(p, digits = 3, scientific = FALSE, ...)
p |
Numeric vector of values to be displayed |
digits |
Numeric of length one giving the number of digits to display.
Note that if |
scientific |
Logical, should scientific notation be used? |
... |
Further arguments passed to |
Character vector of the p-value(s) formatted
Mark Peterson
format
formatP(0.049865465646)
formatP(0.00000013212354)
formatP(c(0.01564643131,.0003456463131, .45643131564), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.