formatp: Format a p-value, somewhat per NEJM style.

Description Usage Arguments Value Examples

View source: R/formatp.R

Description

Format a p-value, somewhat per NEJM style.

Usage

1

Arguments

p

Numeric; p-value to be rounded and formatted

Value

Character string; <0.0001, <0.001, or rndformat(p), depending on the value of p.

Examples

1
2
formatp(0.000214)
formatp(0.28723)

jenniferthompson/JTHelpers documentation built on May 19, 2019, 4:04 a.m.