Description Usage Arguments Examples
Numeric vector with currency format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | currency(x, symbol, digits, format = "f", big.mark = ",", ...)
## Default S3 method:
currency(
x,
symbol = "$",
digits = 2L,
format = "f",
big.mark = ",",
...,
sep = ""
)
## S3 method for class 'character'
currency(
x,
symbol = get_currency_symbol(x),
digits = max(get_digits(x)),
format = "f",
big.mark = ",",
...
)
|
x |
a numeric vector. |
symbol |
currency symbol |
digits |
an integer to indicate the number of digits of the percentage string. |
format |
format type passed to |
big.mark |
thousands separator |
... |
additional parameters passed to |
sep |
separator between symbol and value |
1 2 3 4 5 6 7 |
[1] $200,000.00
[1] <U+20AC>200,000.00
[1] USD 1,200,000.00
[1] USD 1,200,000
[1] $120,250.50
[1] HK$120,250.50
[1] HK$120,250.50
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.