pretty_pval: Pretty print for p-values

View source: R/pval_utils.R

pretty_pvalR Documentation

Pretty print for p-values

Description

Pretty print for p-values.

Usage

pretty_pval(pvalue, digits = 3L, space = FALSE, equal = FALSE)

Arguments

pvalue

A numeric vector of p-values.

digits

number of digits returned (3 by default).

space

Logical specifying whether a space should be inserted between number and operator (= or <, default to FALSE).

equal

add = where needed?

Value

The function returns a string with the pretty printed p-values.

Examples


pval1 <- c(3, NA, 1e-01, 1e-02, 1e-03, 1e-04, 1e-05)
pretty_pval(pval1, space = TRUE)


lbraglia/lbmisc documentation built on March 28, 2024, 10:03 a.m.