
Last chance! 50% off unlimited learning
Sale ends in
format.pval
is intended for formatting p-values.
format.pval(x, pv=x, digits = max(1, .Options$digits - 2),
eps = .Machine$double.eps, na.form = "NA", …)
a numeric vector.
argument for method compliance.
how many significant digits are to be used.
a numerical tolerance: see Details.
character representation of NA
s.
arguments passed to format
in the format.pval
function body.
A character vector.
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)
).
# NOT RUN {
format.pval(c(runif(5), pi^-100, NA))
format.pval(c(0.1, 0.0001, 1e-27))
format.pval(c(0.1, 1e-27), nsmall=3)
# }
Run the code above in your browser using DataLab