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)

DFEAGILEDEVOPS/dfeR documentation built on Feb. 21, 2025, 11:27 p.m.