pretty_price {tatooheene} | R Documentation |
A function to write pretty prices in bookdown
reports
Description
This function writes pretty prices in
bookdown
reports. The function uses the formatC()
function to format the number and adds the currency to the end of the number.
Usage
pretty_price(x, digi = 2, currency = "EUR", ...)
Arguments
x |
A number to be printed |
digi |
Number of digits |
currency |
The name of the currency |
... |
Extra arguments for |
Value
A pretty price with the currency
Examples
# Example usage of the pretty_price function
pretty_price(1000, currency = "EUR")
[Package tatooheene version 0.19.0 Index]