A wrapper to sensibly control the printing of p-values
because I was frustrated with playing with round.
Calls format instead now.
Usage
formatP(p, digits = 3, scientific = FALSE, ...)
Value
Character vector of the p-value(s) formatted
Arguments
p
Numeric vector of values to be displayed
digits
Numeric of length one giving the number of digits to display.
Note that if p is longer than 1, all returned values
will be to the same level of precision.