fmt_p_value | R Documentation |
Format a p-value
fmt_p_value(xs, digits = 3)
xs |
a vector of numbers or a character vector representing numbers |
digits |
number of digits of precision |
formatted *-values. Values smaller than the precision 1 / (10 ^ digits)
are replaced with a less than statement < [precision]
.
p <- c(1, 0.1, 0.01, 0.001, 0.0001)
fmt_p_value(p, digits = 2)
fmt_p_value(p, digits = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.