format_pval: Format p-value

View source: R/format_digits.R

format_pvalR Documentation

Format p-value

Description

Format p-value

Usage

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

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


shug0131/cctu documentation built on Nov. 10, 2023, 12:03 p.m.