The built-in R function round rounds a 5 to the even digit. Instead, we preferred
the more intuitive rounding meaning that a 5 is always rounded to the next higher digit.
Usage
myRound(d)
Arguments
d
Real number.
Value
$d$ if $d - \lfloor d \rfloor < 0.5$ and the smallest integer greater than
$d$ if $d - \lfloor d \rfloor \ge 0.5$.