format_pval: Format p-value

Description Usage Arguments Examples

View source: R/utils.R

Description

Format p-value

Usage

1
format_pval(pvals, sig.limit = 0.001, digits = 3)

Arguments

pvals

A numeric value or vector of p-values

sig.limit

Lower bound for precision; smaller values will be shown as < sig.limit

digits

Number of digits past the decimal point to keep

Examples

1
2
pv <- c(-1, 0.00001, 0.0042, 0.0601, 0.1335, 0.4999, 0.51, 0.89, 0.9, 1)
format_pval(pv)

adayim/cctab documentation built on Dec. 18, 2021, 10:26 p.m.