This function formats a vector of p-values to match the common requirement of 3 decimals with no leading zeros and indicated as "< .001" rather than .000.
Examples
format_p(c(0.000007, 0.15))
#> [1] "< .001" ".150"
This function formats a vector of p-values to match the common requirement of 3 decimals with no leading zeros and indicated as "< .001" rather than .000.
format_p(c(0.000007, 0.15))
#> [1] "< .001" ".150"