nice_p: Format p values

View source: R/nice_p.R

nice_pR Documentation

Format p values

Description

Format p values

Usage

nice_p(p, equal_sign = FALSE, digits = 3, stars = FALSE)

Arguments

p

Vector of p values.

equal_sign

If TRUE an equal sign is set before p values.

Value

A character vector with nicely formatted p values

Examples

p <- c(0.04, 0.9, 0.10, 0.001, 1, NA)
nice_p(p)
paste0("p", nice_p(p, equal_sign = TRUE))

jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.