Description Usage Arguments Value Examples
Formatting will follow excel accounting style
1 | format_acct(x, digits = 2, shown.in = NULL)
|
x |
numeric vector |
digits |
numeric to denote number of decimal places |
shown.in |
character to express value in thousands, millions or billions.
Accepts |
character vector of length(x)
with desired formatting
1 2 3 4 5 6 7 8 9 | ## Not run:
format_acct(100, digits = 0)
library(dplyr)
mtcars %>% mutate(msrp = runif(nrow(.), 20000, 30000), msrp_format = format_acct(msrp, shown.in = 'k'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.