[Superseded]

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", ...)

Arguments

x

a numeric vector

digits

an integer to indicate the number of digits to show.

format

format type passed to formatC().

...

additional parameters passed to formattable().

big.mark

thousands separator

symbol

currency symbol