format.pval | R Documentation |
Format p-value for pretty printing
## S3 method for class 'pval'
format(p, include.p = TRUE, na.string = "NA")
p |
vector of p-values |
include.p |
if TRUE then the characters "p=" or "p<" are prepended (default:TRUE) |
na.string |
characters to output if p-value is NA (default: "NA") |
p <- c(0.5,0.499999,0.004,0.0003,1e-10,NA)
format.pval(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.