Format p-values without displaying calculated zero
Source:R/plots-publication.R
cr_format_pvalue.RdFormat p-values without displaying calculated zero
Value
A character vector; values below the reporting threshold are shown as p < ... and invalid inputs as NA.
Examples
cr_format_pvalue(c(0.2, 0.0004, NA))
#> [1] "p = 0.200" "p < 0.001" NA