abbrdollars: Abbreviate Dollars

Description Usage Arguments Value

View source: R/abbrdollars.R

Description

format dollars abbreviate

Usage

1
2
3
4
5
6
7
abbrdollars(
  x,
  thousandabbr = "K",
  millionabbr = "M",
  billionabbr = "B",
  currency = "$"
)

Arguments

x

a numeric vector of dollar values

thousandabbr

a single character string to be used as the abbreviation for thousands

millionabbr

a single character string to be used as the abbreviation for thousands

billionabbr

a single character string to be used as the abbreviation for thousands

currency

the currency symbol to be used. Prepended to each vaue of x

Value

a character vector of abbreviated dollar values. Values are rounded to 3 significant digits using 'floor()'.


crazybilly/fundRaising documentation built on July 30, 2021, 12:51 a.m.