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().

comma(x)

Arguments

x

A numeric value

Value

Returns a formatted string.