format.pval: Format p-value for pretty printing

View source: R/formatpval.R

format.pvalR Documentation

Format p-value for pretty printing

Description

Format p-value for pretty printing

Usage

## S3 method for class 'pval'
format(p, include.p = TRUE, na.string = "NA")

Arguments

p

vector of p-values

include.p

if TRUE then the characters "p=" or "p<" are prepended (default:TRUE)

na.string

characters to output if p-value is NA (default: "NA")

Examples

p <- c(0.5,0.499999,0.004,0.0003,1e-10,NA)
format.pval(p)

venkmurthy/vmtools documentation built on Oct. 16, 2024, 10:48 a.m.