powered by
bookdown
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.
formatC()
pretty_price(x, digi = 2, currency = "EUR", ...)
A pretty price with the currency
A number to be printed
Number of digits
The name of the currency
Extra arguments for formatC()
# Example usage of the pretty_price function pretty_price(1000, currency = "EUR")
Run the code above in your browser using DataLab