Numeric vector with thousands separators
Numeric vector with thousands separators
comma(x, digits, format = "f", big.mark = ",", ...) ## Default S3 method: comma(x, digits = 2L, format = "f", big.mark = ",", ...) ## S3 method for class 'character' comma(x, digits = max(get_digits(x)), format = "f", big.mark = ",", ...)
x |
a numeric vector. |
digits |
an integer to indicate the number of digits of the percentage string. |
format |
format type passed to |
big.mark |
thousands separator |
... |
additional parameters passed to |
comma(1000000) comma(c(1250000, 225000)) comma(c(1250000, 225000), format = "d") comma("123,345.123")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.