pvalr: Format p values for the output and removes trailing numbers...

View source: R/plot_utils.R

pvalrR Documentation

Format p values for the output and removes trailing numbers when p > .10

Description

Format p values for the output and removes trailing numbers when p > .10

Usage

pvalr(pvals, sig.limit = 0.001, digits = 3, html = FALSE)

Arguments

pvals

A vector with p-values

sig.limit

The lowest threshold for full reporting

digits

the amount of digits to report when sig.limit < p < .10

html

whether to use html coded output

Value

A string formatted p-value including equal and less-than sign

pvalr(c(0.432, 0.05, 0.00001))


seminr documentation built on Oct. 14, 2024, 1:07 a.m.