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)

aroelo/ncp_pavian documentation built on May 2, 2021, 4:16 a.m.