[Stable]

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)
#> [1] "1"