Description Usage Arguments Note
Round a vector of numerics while preserving their sum
1 | smart_round(x, digits = 0)
|
x |
a vector of numeric values |
digits |
the number of digits to round each value to |
This function comes from a post on Stack Overflow.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.