Determine the appropriate unit for a percent value (e.g., 1000000 = '1 Million'.

xunitspct(value, sign = TRUE)

Arguments

value

A numeric.

sign

Include percent sign. Default = T.

Examples

xunitspct(value = 8.4)
#> [1] "8%"
xunitspct(value = -8.4, sign = TRUE)
#> [1] "-8%"
xunitspct(value = -8.4, sign = FALSE)
#> [1] -8