format_dollars: Format numeric values to dollars

View source: R/format_dollars.R

format_dollarsR Documentation

Format numeric values to dollars

Description

Format numeric values with comma for thousands separator. Can be converted back from this format to numeric using to = "numeric".

Usage

format_dollars(x, to = "character")

Arguments

x

The formatted.ACB file

to

What to convert to, with otions c("character", "numeric").

Value

A value representing dollars, either as a formatted character string or as a numeric value.

Examples

x <- format_dollars(1010.92)
x
format_dollars(x, to = "numeric")

cryptoTax documentation built on March 7, 2023, 7:46 p.m.