dig_dec: dig_dec

Description Usage Arguments Value TODO Note Examples

Description

Conviences tool to obtain a functions digits and decimals

Usage

1

Arguments

x

Single numeric value or string that is coercible to numeric.

Value

Named numeric vector with the components

digits

Number of digets left of the decimal

decimals

Number of digets right of the decimal

round

The smartest place to round for readablity

TODO

Note

Rmpfr::format, Rmpfr::mpfr may contain better solutions.

Examples

1
2
3
4
dig_dec(3949.1221291)
dig_dec("3523.642")
dig_dec(00000.0002)
dig_dec(x = 9.2)

JamesDalrymple/wccmh documentation built on May 7, 2019, 10:20 a.m.