pvalf.default: Default p-value formatting method

View source: R/latex_tables.R

pvalf.defaultR Documentation

Default p-value formatting method

Description

Format a p-value for printing in a LaTeX table. Requires the ulem LaTeX package for underlining the p-values.

Usage

## Default S3 method:
pvalf(pval, params = list())

Arguments

pval

Numeric value between 0 and 1.

params

A list of options. This function accepts the following options:

minval

If p-value is below this value, return this value preceded by a "<" sign instead instead.

lim1val

If p-value is below this value, it will be double-underlined.

lim2val

If p-value is below this value, it will be underlined.

na_str

String to use for NAs. By default NAs are returned as is.

Value

A string representing the formatted pval.

Examples

pvalf(0.1)
pvalf(0.000001)
pvalf(c(0.06, 0.04, 0.005, 0.00001), list(minval = 0.0001))


fakenmc/micompr documentation built on Aug. 6, 2024, 8:29 p.m.