Vectorised helper to format numeric p-values into readable strings.
Value
Character vector of formatted p-values, optionally prefixed with p_symbol when include_p_symbol is TRUE.
Examples
format_pvalue(0.0005)
#> [1] "p<0.001"
format_pvalue(c(0.0005, 0.005, 0.02, 0.236))
#> [1] "p<0.001" "p=0.005" "p=0.020" "p=0.24"