Converts large numeric values to millions format with appropriate suffix. Values less than 1 million are shown in thousands.
Examples
# Format in millions
to_million(c(5000, 1000000, 2500000))
#> [1] "5k" "1.0 million" "2.5 million"
Converts large numeric values to millions format with appropriate suffix. Values less than 1 million are shown in thousands.
# Format in millions
to_million(c(5000, 1000000, 2500000))
#> [1] "5k" "1.0 million" "2.5 million"