This is an ordinary rounding function, so called round half away from zero
Round(x, n = 0)
numeric to be rounded
indicating decimal digits
round in R base rounds to the even number, i.e.
round(0.5) is 0 not 1.
If you want rounding 0.5 be 1, you can use this
This function is for the consistency with other software like MS-Excel, SAS.
ordinarily rounded value
Kyun-Seop Bae <firstname.lastname@example.org>
See wikipedia subject "Rounding"
(x = 1:10 - 0.5) Round(x) round(x) # compare with the above
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.