Description Usage Arguments Value Examples
P-values will be displayed in one of two ways:
Like 0.01 if the rounded p-value is large enough to fit in
digits
with at least one non-zero digit.
In scientific notation (e.g. 1.23e-03) otherwise. The displayed
value will have one more digit than in digits
to account
for the digit before the decimal place.
1 | format_p(p, digits)
|
p |
A numeric vector of p-values, all between 0 and 1. |
digits |
The number of digits after the decimal point to display. |
A character vector of formatted p-values.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.