Decimal Formatting
h_format_dec.RdDecimal Formatting
Arguments
- digits
(
integer) number of digits.- format
(
string) describing how the numbers should be formatted following thesprintfsyntax.
Examples
fun <- h_format_dec(1, "%f - %f")
fun(c(123, 567.89))
#> [1] "123.0 - 567.9"