Format percentage
Arguments
- x
A numeric vector.
- digits
Number of digits.
- pre
Text before the number.
- post
Text after the number.
Examples
fmt_pct(c(1, 1.52, 0.3, 100))
#> [1] " (1.0)" " (1.5)" " (0.3)" "(100.0)"
Format percentage
A numeric vector.
Number of digits.
Text before the number.
Text after the number.
fmt_pct(c(1, 1.52, 0.3, 100))
#> [1] " (1.0)" " (1.5)" " (0.3)" "(100.0)"