format.pval

0th

Percentile

Format P Values

format.pval is intended for formatting p-values.

Keywords
print
Usage
format.pval(pv, digits = max(1, getOption("digits") - 2),
            eps = .Machine$double.eps, na.form = "NA", ...)
Arguments
pv

a numeric vector.

digits

how many significant digits are to be used.

eps

a numerical tolerance: see ‘Details’.

na.form

character representation of NAs.

further arguments to be passed to format such as nsmall.

Details

format.pval is mainly an auxiliary function for print.summary.lm etc., and does separate formatting for fixed, floating point and very small values; those less than eps are formatted as "< [eps]" (where ‘[eps]’ stands for format(eps, digits)).

Value

A character vector.

Aliases
  • format.pval
Examples
library(base) # NOT RUN { format.pval(c(stats::runif(5), pi^-100, NA)) format.pval(c(0.1, 0.0001, 1e-27)) # }
Documentation reproduced from package base, version 3.5.2, License: Part of R 3.5.2

Community examples

Looks like there are no examples yet.