dollar_millions: Format dollar amounts in terms of millions of USD

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Given a number, return a string formatted in terms of millions of dollars.

Usage

1

Arguments

x

A number.

Value

String in the format of $xM.

Examples

1
dollar_millions(1.523 * 10^6)

davidski/evaluator documentation built on Jan. 31, 2022, 3:44 a.m.