Learn R Programming

epade (version 0.2.2)

format_p.ade: 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

Value

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

item

  • pgits
  • digits

Details

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

See Also

format_n.ade

Examples

Run this code
format_p.ade(0.045825, 4, 3)
format_p.ade(0.000025, 4)
format_p.ade(0.000025, 3.5)

Run the code above in your browser using DataLab