humanreadable: Make a number human readable

Description Usage Arguments Value Examples

View source: R/helper-humanreadable.R

Description

Make a number human readable

Usage

1
humanreadable(x, base = 10^3, suffix = "", signif_digits = 3)

Arguments

x

Number.

base

typically 1000 or 2^10.

suffix

Will be concatendated to the end.

signif_digits

Number of significant digits.

Value

human readable representation of the number

Examples

1
humanreadable(1234.567)

phac-nml/pavian documentation built on Aug. 20, 2019, 5:54 a.m.