nice_pval: Formats p values for nice printing

View source: R/nice_things.R

nice_pvalR Documentation

Formats p values for nice printing

Description

Takes a p value and formats it to three decimal places for printing.

Usage

nice_pval(x)

Arguments

x

A p-value

Value

A string where the p-value is formatted to three decimal places or "<0.001" where appropriate

Examples

nice_pval(0.045)
nice_pval(1e-05)

simonthelwall/nicethings documentation built on Feb. 27, 2023, 3:15 p.m.