powered by
Numeric vector with thousands separators
comma(x, digits, format = "f", big.mark = ",", ...)# S3 method for default comma(x, digits = 2L, format = "f", big.mark = ",", ...)# S3 method for character comma(x, digits = max(get_digits(x)), format = "f", big.mark = ",", ...)
# S3 method for default comma(x, digits = 2L, format = "f", big.mark = ",", ...)
# S3 method for character comma(x, digits = max(get_digits(x)), format = "f", big.mark = ",", ...)
a numeric vector.
an integer to indicate the number of digits of the percentage string.
format type passed to formatC.
formatC
thousands separator
additional parameters passed to formattable.
formattable
# NOT RUN { comma(1000000) comma(c(1250000, 225000)) comma(c(1250000, 225000), format = "d") comma("123,345.123") # }
Run the code above in your browser using DataLab