Learn R Programming

metalite.ae (version 0.1.2)

fmt_pval: Format p-value

Description

Format p-value

Usage

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

Value

A numeric vector with the expected format.

Arguments

p

A numeric vector of p-values.

digits

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

width

Width of each column.

Examples

Run this code
fmt_pval(c(0.1234, 0.00002))

Run the code above in your browser using DataLab