comma: Add comma separator for thousands

View source: R/supporting_functions.R

commaR Documentation

Add comma separator for thousands

Description

Takes a numeric value and returns a character value which is rounded to the whole number, and adds a comma separator at the thousands. A convenient wrapper function around round() and format().

Usage

comma(x)

Arguments

x

A numeric value

Value

Returns a formatted string.


wpa documentation built on Aug. 21, 2023, 5:11 p.m.

Related to comma in wpa...