These generics and functions are superseded.
New code should use the num_...()
or parse_...()
functions instead,
such as num_accounting()
.
digits(x, digits, format = "f", ...)
scientific(x, format = c("e", "E"), ...)
accounting(x, digits = 2L, format = "f", big.mark = ",", ...)
comma(x, digits, format = "f", big.mark = ",", ...)
currency(x, symbol, digits, format = "f", big.mark = ",", ...)
percent(x, digits, format = "f", ...)
a numeric vector
an integer to indicate the number of digits to show.
format type passed to formatC()
.
additional parameters passed to formattable()
.
thousands separator
currency symbol