printMoney: Print numeric as a dollar figure

Description Usage Arguments Value Examples

View source: R/printMoney.R

Description

Print money with dollar signs and commas

Usage

1
2
printMoney(value, currency.sym = "$", digits = 2, sep = ",",
  decimal = ".")

Arguments

value

Vector of non-negative numbers (will be rounded to integers)

currency.sym

The BigMark you would like to use.

digits

How many digits after the point sep.

sep

The thousands seperator you would like to use.

decimal

The mark you would like to use for the decimal point.

Value

Character string with numbers written like "$7,547,085".

Examples

1
2
3
4
## Not run: 
printMoney(999723285)

## End(Not run)

keberwein/krisUtils documentation built on May 20, 2019, 5:26 p.m.