powered by
Format a p-value for printing in a LaTeX table. Requires the ulem LaTeX package for underlining the p-values.
LaTeX
# S3 method for default pvalf(pval, params = list())
A string representing the formatted pval.
pval
Numeric value between 0 and 1.
A list of options. This function accepts the following options:
If p-value is below this value, return this value preceded by a "<" sign instead instead.
If p-value is below this value, it will be double-underlined.
If p-value is below this value, it will be underlined.
String to use for NAs. By default NAs are returned as is.
pvalf(0.1) pvalf(0.000001) pvalf(c(0.06, 0.04, 0.005, 0.00001), list(minval = 0.0001))
Run the code above in your browser using DataLab