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 June 22, 2024, 9:59 a.m.

Related to comma in wpa...