Style numbers
Arguments
- x
(
numeric)
Numeric vector- digits
(non-negative
integer)
Integer or vector of integers specifying the number of decimals to roundx. When vector is passed, each integer is mapped 1:1 to the numeric values inx- big.mark
(
string)
Character used between every 3 digits to separate hundreds/thousands/millions/etc. Default is",", except whendecimal.mark = ","when the default is a space.- decimal.mark
(
string)
The character to be used to indicate the numeric decimal point. Default is"."orgetOption("OutDec")- scale
(scalar
numeric)
A scaling factor:xwill be multiplied by scale before formatting.- prefix
(
string)
Additional text to display before the number.- suffix
(
string)
Additional text to display after the number.- na
(
NA/string)
Character to replaceNAvalues with. Default isNA_character- ...
Arguments passed on to
base::format()
