piformat | R Documentation |
This function formats p-values in the most usual way, i.e. with two decimals if p>=0.05, with three decimals if p>=0.001 and p<0.05, and as "p<0.001" if p<0.001.
piformat(x, html = FALSE, tb = TRUE)
x |
One or more color names (as a character vector) |
html |
Escape the < character with the < character entity |
tb |
Omit the "p=" or "p<" part, e.g. if outputting to a table |
A character vector of equal length to x, with formatted p-values
piformat(c(0.0001,0.001,0.01,0.1,0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.