p_format: formats p values with rounding and <0.001

View source: R/p_format.R

p_formatR Documentation

formats p values with rounding and <0.001

Description

formats p values with rounding and <0.001

Usage

p_format(p, digits = 3)

Arguments

p

vector of numeric p-values

digits

the number of digits to round to, and define the threshold to use the < symbol

Value

character vector of formated p-values

Examples

 p_format(c(0.000001,0.451234))

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