dollar_format {scales} | R Documentation |
label_dollar()
These functions are kept for backward compatibility; you should switch
to label_dollar()
for new code.
dollar_format(
accuracy = NULL,
scale = 1,
prefix = "$",
suffix = "",
big.mark = ",",
decimal.mark = ".",
trim = TRUE,
largest_with_cents = 1e+05,
negative_parens = deprecated(),
...
)
dollar(
x,
accuracy = NULL,
scale = 1,
prefix = "$",
suffix = "",
big.mark = ",",
decimal.mark = ".",
trim = TRUE,
largest_with_cents = 1e+05,
negative_parens = deprecated(),
style_negative = c("hyphen", "minus", "parens"),
scale_cut = NULL,
...
)
accuracy |
Number to round to. If |
scale |
A scaling factor: |
prefix |
Symbols to display before and after value. |
suffix |
Symbols to display before and after value. |
big.mark |
Character used between every 3 digits to separate thousands. |
decimal.mark |
The character to be used to indicate the numeric decimal point. |
trim |
Logical, if |
largest_with_cents |
Number to round to. If |
negative_parens |
|
... |
Other arguments passed on to |
x |
A numeric vector |