format_p | R Documentation |
Round and format p-values
format_p(x, digits = 1)
x |
numeric vector of p-values |
digits |
number of digits large p-values will be rounded to. Default is 2, and must be one of 1, 2, or 3. |
a string
p_vec <- c(0.00001, 0.01111, 0.0500000, 0.15, 0.99999)
format_p(p_vec)
format_p(p_vec, 2)
format_p(p_vec, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.