Description Usage Arguments Value
using formattable functions to format a vector given its type
1 2 | format_number(x, type, digits = 0, symbol = "$",
remove_infinite = TRUE)
|
x |
a numeric vector |
type |
type for the vector, valid values are "currency", "percent", "comma" and "accounting" |
digits |
digits for the number |
symbol, |
currency symbol. only works when type is currency. |
remove_infinite |
default to TRUE. Conver NA,NaN, Inf ... to "" |
a character vector with formatted numbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.