comma_sep: Comma separate

View source: R/comma_sep.R

comma_sepR Documentation

Comma separate

Description

Adds separating commas to big numbers. If a value is not numeric it will return the value unchanged and as a string.

Usage

comma_sep(number, nsmall = 0L)

Arguments

number

number to be comma separated

nsmall

minimum number of digits to the right of the decimal point

Value

string

Examples

comma_sep(100)
comma_sep(1000)
comma_sep(3567000)

dfe-analytical-services/dfeR documentation built on Feb. 17, 2025, 10:11 p.m.