R/fmt.R
fmt_pval.Rd
Format p-value
fmt_pval(p, digits = 3, width = 3 + digits)
A numeric vector of p-values.
Digits of each column, i.e., format as x.xxx.
Width of each column.
A numeric vector with the expected format.
fmt_pval(c(0.1234, 0.00002)) #> [1] " 0.123" "<0.001"