This funciton standardizes units of a value. For example, 1,000,000 would become "1 Million."
xunits(val, combine = T)
val | Value to be evaluated. |
---|---|
combine | TRUE/FALSE (Default = TRUE). Asks if you want two strings (FALSE) or 1 concatenated string (TRUE). |
xunits(1234567890)
#> [1] "1.2 billion"