Description Usage Arguments Value Examples
View source: R/misc functions.R
maturing Format a vector of numeric values according to monetary abbreviations.
(ie: 1,000 becomes "1 k", 2,500,000 becomes "2.5 B") See: https://www.wallstreetoasis.com/forums/abbreviation-for-thousands-millions-billions-trillion
1 | si_scale_big_dollar(x, sep = " ", suffix_n = F)
|
sep |
Seperator to use between number and unit (defaults to " "). |
suffix_n |
Use "Bn" and "Tn" instead of "B" and "T". |
Character vector of formatted dollar values.
1 2 3 4 5 6 | ## Not run:
si_scale_big_dollar(1000)
si_scale_big_dollar(1000000000)
si_scale_big_dollar(1000000000, suffix_n = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.