num: Display a number in Dollars

Description Usage Arguments

View source: R/number_printing.R

Description

This function accepts a single number and converts it into dollars for display in the monitoring reports.

Usage

1
num(x, use_cents = FALSE, digits, decimals)

Arguments

x

The numeric value to be conferted (must be length 1)

use_cents

Should 2 digits to the right of the decimal be used (default = FALSE)

digits

Specify the number of digits to use (includes left and right of decimal)

decimals

Specifies the number of digits to the right of the decimal


kbrevoort/kpbkh documentation built on May 20, 2019, 8:11 a.m.