format_p: Nicely display p-values at a specified number of digits.

Description Usage Arguments Value Examples

View source: R/stats.R

Description

P-values will be displayed in one of two ways:

Usage

1
format_p(p, digits)

Arguments

p

A numeric vector of p-values, all between 0 and 1.

digits

The number of digits after the decimal point to display.

Value

A character vector of formatted p-values.

Examples

1
format_p(p = c(0.01, 0.001, 0.009, 0.5), digits = 2)

seaaan/easieR documentation built on May 29, 2019, 4:23 p.m.