bucks | R Documentation |
Print function for "money" objects, e.g. fin_interest()
.
bucks(
x,
symbol = "$",
big.mark = ",",
decimal.mark = ".",
trim = TRUE,
largest_with_cents = 1e+05,
negative_parens = c("hyphen", "minus", "parens"),
...
)
x |
money object. |
symbol |
Default prefix if not set. |
big.mark |
option defaulting to "," |
decimal.mark |
option defaulting to "." |
trim |
option defaulting to TRUE |
largest_with_cents |
option defaulting to 1e+05 |
negative_parens |
option defaulting to "hyphen" |
... |
further arguments passed to or from other methods. also cat =F to return string |
invisible
fin_percent()
, fin_interest()
, scales::dollar()
bucks(100 * 1.05^32)
fin_interest(deposits = 20e3, interest = 0.07, yrs = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.