f_comma: Format numeric vector in comma format

View source: R/btools_formatting.r

f_commaR Documentation

Format numeric vector in comma format

Description

f_comma comma format - calls scales::label_comma

Usage

f_comma(num, ...)

Arguments

num

numeric vector to format

...

arguments passed to scales::label_comma

Details

format the vector using scales::label_comma

Value

formatted values as a character vector.

Examples

f_comma(1.2345)
f_comma(1.2345, scale=1000)
f_comma(1.2345, scale=1000, accuracy=0.01)

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.