Description Usage Arguments Examples
Numeric vector with accounting format
1 2 3 4 5 6 7 | accounting(x, digits = 2L, format = "f", big.mark = ",", ...)
## Default S3 method:
accounting(x, digits = 2L, format = "f", big.mark = ",", ...)
## S3 method for class 'character'
accounting(x, digits = max(get_digits(x)), format = "f", big.mark = ",", ...)
|
x |
a numeric vector. |
digits |
an integer to indicate the number of digits of the percentage string. |
format |
format type passed to |
big.mark |
thousands separator |
... |
additional parameters passed to |
1 2 3 4 | accounting(15320)
accounting(-12500)
accounting(c(1200, -3500, 2600), format = "d")
accounting(c("123,23.50", "(123.243)"))
|
[1] 15,320.00
[1] (12,500.00)
[1] 1,200 (3,500) 2,600
[1] 12,323.500 (123.243)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.