rep_pval {kdry} | R Documentation |
rep_pval
Description
Reporting helper function: formats p-value.
Usage
rep_pval(p, threshold = 0.001, digits = 3L)
Arguments
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). |
Details
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.
Value
A character with the formatted p-value.
Examples
rep_pval(0.032)
rep_pval(0.00032)
[Package kdry version 0.0.2 Index]