round_half_up | R Documentation |
Round according to human-friendly "round-half-up" convention.
round_half_up(x, digits = 0)
x |
numeric |
digits |
integer |
R's round()
follows the IEEE "round-to-even" rule, meaning that 1.5 will be rounded to 2, but 2.5 will also be rounded to 2. This isn't what many (most?) humans expect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.