print_currency | R Documentation |
Wrapper functions for printing nicely formatted values.
print_currency(
x,
suffix = "",
big.mark = ",",
accuracy = NULL,
prefix = NULL,
...
)
print_percent(x, accuracy = 0.1, ...)
x |
A numeric vector |
big.mark |
Character used between every 3 digits to separate thousands. |
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
prefix , suffix |
Symbols to display before and after value. |
... |
Other arguments passed on to |
A character. Formatted value.
A character. Formatted value.
scales::dollar()
scales::percent()
print_currency(2345678, suffix = " PLN")
print_percent(0.52366)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.