Usage
fpvalue(p, limit = 0.001, tex = FALSE)
Arguments
- p
numeric. The p value to format
- limit
numeric. the minimum value to print. Default to 0.001
- tex
logical. If TRUE, the result is inserted into two $...$
Value
string with the formatted p value
Examples
fpvalue(0.001, tex = TRUE)
#> [1] "$p = 0.001$"
fpvalue(0.001, tex = FALSE)
#> [1] "p = 0.001"