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