fn: Format numbers (including p-values)

View source: R/fn.R

fnR Documentation

Format numbers (including p-values)

Description

[Stable]

Usage

fn(x, dig = 0, p = FALSE, pequalsign = FALSE, ...)

Arguments

x

Number that should be formatted.

dig

Number of digits.

p

is x a p-value? If <0.x1 will then format to <0.x1.

pequalsign

if x is a p-value should = be placed in front if not <0.x1

...

Additional arguments to formatC.

Value

The formatted number.

Examples

x <- 1.234
fn(x)

linabe/hfmisc documentation built on Oct. 10, 2022, 3:17 p.m.