A simple version of scales::comma

comma(x)

Arguments

x

a number to convert to comma format

Value

a string representation of the input in comma format