Automatically formats a number or vector of numbers to a specified format
1 | autoformat(x, scheme = "KMBT", format = NULL)
|
x |
Number or numeric vector |
scheme |
Formatting scheme to apply. Default is "KMBT", meaning number will be shown as trillions (T), billions (B), millions (M), thousands (K), or ones. In the case of any format greater than ones, the number will be rounded to one decimal place. |
format |
Format to apply (in absence of a scheme) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.