format_p.ade: Formating p-values

View source: R/format_p.ade.R

format_p.adeR Documentation

Formating p-values

Description

Format a p-value for pretty printing.

Usage

format_p.ade(x, pgits=4, digits=2)

Arguments

x
  • a numeric p-value

  • a vector of numeric p-values

  • a matrix of numeric p-values

pgits

Number of digits after decimal for cutoff of the p-value, 4 means, all under 0.0001 will be shown like <0.0001

digits

how many significant digits are to be used. (bevore the cut with pgits)

Details

if used a half-integer for pgits, like 3.5 the p-value will be shown like <0.0005

Value

An object of similar structure to x containing character representations of the elements of x in a common format

See Also

format_n.ade

Examples

format_p.ade(0.045825, 4, 3)
format_p.ade(0.000025, 4)
format_p.ade(0.000025, 3.5)

epade documentation built on Oct. 29, 2022, 1:14 a.m.