R's default round() function does banker's rounding. This round2 function rounds a number half up.
1 | round2(x, digits = 0)
|
x |
number |
digits |
numeric; a number specifying the number of digits to round to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.