prettyPval: Pretty print for p-values

Description Usage Arguments Value Examples

View source: R/prettyPval.R

Description

Pretty print for p-values.

Usage

1
prettyPval(pvalue, digits = 3L, space = FALSE, equal = TRUE)

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 return a string with the pretty printed p-values.

Examples

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

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.