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))


sem-in-r/seminr documentation built on Aug. 26, 2022, 8:47 p.m.