bucks: Print a money object

bucksR Documentation

Print a money object

Description

Print function for "money" objects, e.g. fin_interest().

Usage

bucks(
  x,
  symbol = "$",
  big.mark = ",",
  decimal.mark = ".",
  trim = TRUE,
  largest_with_cents = 1e+05,
  negative_parens = c("hyphen", "minus", "parens"),
  ...
)

Arguments

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

Value

  • invisible

See Also

  • fin_percent(), fin_interest(), scales::dollar()

Examples

bucks(100 * 1.05^32)
fin_interest(deposits = 20e3, interest = 0.07, yrs = 20)


umx documentation built on May 29, 2024, 5:40 a.m.

Related to bucks in umx...