Description Usage Arguments Value
format dollars abbreviate
1 2 3 4 5 6 7 | abbrdollars(
x,
thousandabbr = "K",
millionabbr = "M",
billionabbr = "B",
currency = "$"
)
|
x |
a numeric vector of dollar values |
thousandabbr |
a single character string to be used as the abbreviation for thousands |
millionabbr |
a single character string to be used as the abbreviation for thousands |
billionabbr |
a single character string to be used as the abbreviation for thousands |
currency |
the currency symbol to be used. Prepended to each vaue of x |
a character vector of abbreviated dollar values. Values are rounded to 3 significant digits using 'floor()'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.