dollar_format

0th

Percentile

Currency formatter: round to nearest cent and display dollar sign.

Currency formatter: round to nearest cent and display dollar sign.

Usage
dollar_format()

dollar(x)

Arguments
x
a numeric vector to format
Value

  • a function with single paramater x, a numeric vector, that returns a character vector

Aliases
  • dollar
  • dollar_format
Examples
dollar_format()(c(100, 0.23, 1.456565, 2e3))
dollar_format()(c(1:10 * 10))
dollar(c(100, 0.23, 1.456565, 2e3))
dollar(c(1:10 * 10))
Documentation reproduced from package scales, version 0.2.0, License: MIT

Community examples

sitieneigrc8@gmail.com at Jul 6, 2019 scales v0.2.0

dollar_format()(c(100, 0.23, 1.456565, 2e3)) dollar_format()(c(1:10 * 10)) dollar(c(100, 0.23, 1.456565, 2e3)) dollar(c(1:10 * 10))