pretty_price | R Documentation |
bookdown
reports
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.
pretty_price(x, digi = 2, currency = "EUR", ...)
x |
A number to be printed |
digi |
Number of digits |
currency |
The name of the currency |
... |
Extra arguments for |
A pretty price with the currency
# Example usage of the pretty_price function
pretty_price(1000, currency = "EUR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.