format_num | R Documentation |
Format value to add a thousand and decimal mark.
format_num(
x,
digits = 2,
decimal_mark = ".",
thousand_mark = ",",
br_mark = FALSE
)
x |
A numeric vector |
digits |
A numeric integer single value (default = 2), that will be the number of decimal digits |
decimal_mark |
A character single value to use as the decimal mark (default = '.') |
thousand_mark |
A character single value to use as the thousand mark (default = ',') |
br_mark |
A boolean value, if TRUE the function will set decimal_mark = ',' and thousand_mark = '.' (default = FALSE) |
A character vector with the formatted vector.
format_num(12345.67)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.