Often for nice presentation of genomic locations it is helpful
to insert commas every 3 digits when numbers are large. This function
makes it simple and allows specification of digits if a decimal number
is in use.
Usage
comify(x, digits = 2)
Value
returns a character vector with commas inserted every 3 digits
Arguments
x
a vector of numbers, either as character, integer or numeric form
digits
integer, if decimal numbers are in use, how many digits to display,
same as input to base::round()