format_currency {R4GoodPersonalFinances} | R Documentation |
Printing currency values or percentages
Description
Wrapper functions for printing nicely formatted values.
Usage
format_currency(
x,
prefix = "",
suffix = "",
big.mark = ",",
accuracy = NULL,
min_length = NULL,
...
)
format_percent(x, accuracy = 0.1, ...)
Arguments
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 |
Value
A character. Formatted value.
A character. Formatted value.
See Also
Examples
format_currency(2345678, suffix = " PLN")
format_percent(0.52366)
[Package R4GoodPersonalFinances version 1.0.0 Index]