R/p_format.R
p_format.Rd
formats p values with rounding and <0.001
p_format(p, digits = 3)
vector of numeric p-values
the number of digits to round to, and define the threshold to use the < symbol
character vector of formated p-values
p_format(c(0.000001, 0.451234)) #> [1] "<0.001" " 0.451"