Style numbers
style_number(
x,
digits = 0,
big.mark = NULL,
decimal.mark = NULL,
scale = 1,
...
)
Numeric vector
Integer or vector of integers specifying the number of decimals
to round x=
. When vector is passed, each integer is mapped 1:1 to the
numeric values in x
Character used between every 3 digits to separate
hundreds/thousands/millions/etc.
Default is ","
, except when decimal.mark = ","
when the default is a space.
The character to be used to indicate the numeric decimal point.
Default is "."
or getOption("OutDec")
A scaling factor: x will be multiplied by scale before formatting.
Other arguments passed on to base::format()
formatted character vector
Other style tools:
style_percent()
,
style_pvalue()
,
style_ratio()
,
style_sigfig()