fmt_pval: Format p-value

View source: R/fmt.R

fmt_pvalR Documentation

Format p-value

Description

Format p-value

Usage

fmt_pval(p, digits = 3, width = 3 + digits)

Arguments

p

A numeric vector of p-values.

digits

Digits of each column, i.e., format as x.xxx.

width

Width of each column.

Value

A numeric vector with the expected format.

Examples

fmt_pval(c(0.1234, 0.00002))

Merck/metalite.ae documentation built on Feb. 10, 2025, 5:03 p.m.