as.currency: Format as currency

View source: R/as.currency.R

as.currencyR Documentation

Format as currency

Description

Given a numeric vector, format it as currency, implicitly changing it to a string.

Usage

as.currency(x)

Arguments

x

a numeric vector to be formatted

Details

Think about using formattable::currency() instead, which preserves numbers (but displays them as currency).

Value

a vector of strings formated as currency, with commas and dollar signs.


crazybilly/ucbudar documentation built on July 15, 2024, 5:03 p.m.