pval_stars | R Documentation |
Pretty print for p-values.
pval_stars(p = NULL, less_05 = TRUE)
p |
A numeric vector of p-values. |
less_05 |
if TRUE (default) return stars only for p < 0.05 |
The function returns a character vector with stars related to p-value.
pval1 <- c(NA, 0, 0.005, 0.01, 0.025, 0.05, 0.07, 0.5, 1, 3)
cbind(pval1, pval_stars(pval1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.