nice_p | R Documentation |
This function returns nice p-values. This is useful especially for us with rmarkdown files and knitr::tables.
nice_p(pval, digits = 4)
pval |
P-value to be converted |
digits |
Number of digits to round |
A numeric object
set.seed(1) x <- rnorm(100, mean = 0) y <- rnorm(100, mean = 10) t <- t.test(x, y) nice_p(t$p.value)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.