Learn R Programming

reportRmd (version 0.1.0)

pvalue: Formats p-values

Description

Returns <0.001 if pvalue is <0.001. Else rounds the pvalue to specified significant digits

Usage

pvalue(x, digits)

Arguments

x

an integer

digits

the number of significant digits to return