Description Usage Arguments Value Examples
A friendly function to simplify the output of nicely formatted numbers.
format_number
The original function name.
fn
A shortcut function alias.
TODO: This function is a bit procedural and is probably not optimal from a in terms of performances. We should test it with large volumes of numbers and optimize it as needed.
1 2 3 |
x |
a vector of numbers |
digits |
the number of digits to be displayed |
nicely formatted numbers
1 2 | format_number(c(10.555,3.14),2)
fn(c(10.555,3.14),2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.