round(c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5))
Output: 0 2 2 4 4 6 6
I do not see a problem, when X.5 rounds to X or to X+1 (I could accept that as a matter of definition). I can not understand when X.5 rounds to X+1 but some Y.5 rounds to Y. For example, round(1.5)=round(2.5)=2 ?! Thanks a lot for your help in understaning!