Skip to content

Commit 5d95ac0

Browse files
committed
Update financial functions.R
* IMPROVED: `bucks` knows about umx_set_dollar_symbol
1 parent 059ea6f commit 5d95ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/financial functions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ fin_NI <- function(annualEarnings, symbol = "\u00A3") {
348348
#' bucks(100 * 1.05^32)
349349
#' fin_interest(deposits = 20e3, interest = 0.07, yrs = 20)
350350
#'
351-
bucks <- function(x, symbol = "$", big.mark = ",", decimal.mark = ".", trim = TRUE, largest_with_cents = 1e+05, negative_parens = c("hyphen", "minus", "parens"), ...) {
351+
bucks <- function(x, symbol = umx_set_dollar_symbol(silent=TRUE), big.mark = ",", decimal.mark = ".", trim = TRUE, largest_with_cents = 1e+05, negative_parens = c("hyphen", "minus", "parens"), ...) {
352352
dot.items = list(...) # grab all the dot items cat
353353
cat = ifelse(is.null(dot.items[["cat"]]), TRUE, dot.items[["cat"]])
354354
if(is.null(dot.items[["cat"]])){

0 commit comments

Comments
 (0)