style_number | R Documentation |
Style numbers
style_number(
x,
digits = 0,
big.mark = ifelse(decimal.mark == ",", " ", ","),
decimal.mark = getOption("OutDec"),
scale = 1,
prefix = "",
suffix = "",
...
)
x |
( |
digits |
(non-negative |
big.mark |
( |
decimal.mark |
( |
scale |
(scalar |
prefix |
( |
suffix |
( |
... |
Arguments passed on to |
formatted character vector
c(0.111, 12.3) |> style_number(digits = 1)
c(0.111, 12.3) |> style_number(digits = c(1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.