rep_pval | R Documentation |
Reporting helper function: formats p-value.
rep_pval(p, threshold = 0.001, digits = 3L)
p |
The p-value that should be formatted. |
threshold |
A threshold to indicate that only "< threshold" is printed as output (default: 0.001). |
digits |
The number of digits of the formatted p-value (digits). |
If the p-value is lower than the threshold, the output of the function is "< threshold". Otherwise, the p-value is formatted to the number of digits.
A character with the formatted p-value.
rep_pval(0.032)
rep_pval(0.00032)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.