format_pval: Format P-values

Description Usage Arguments Value

View source: R/helpers.R

Description

Format P-values

Usage

1
format_pval(p, digits = 3, eps = 0.001)

Arguments

p

A numeric vector of P-values

digits

The numeric of digits to round P-values to before formatting

eps

Number below which to express P-values as "< 0.001", for examples.

Value

A character vector of formatted P-values


colinorourke/simpower documentation built on May 21, 2019, 1:42 a.m.