Yes I know why we always round to the nearest even number if we are in the exact middle (i.e. 2.5 becomes 2) of two numbers. But when I want to evaluate data for some people they don't want this behaviour. What is the simplest method to get this:
x <- seq(0.5,9.5,by=1)
round(x)
to be 1,2,3,...,10 and not 0,2,2,4,4,...,10.
Edit: To clearify: 1.4999 should be 1 after rounding. (I thought this would be obvious)
round
mapsn + .5
ton
seems arbitrary to me.x
from above trymean(x); mean(round(x)); mean(floor(0.5 + x))
. Of course this does not proof anything as this could be only a special case. But look at this this way: If we round every x.5 up of course our rounded data than is biased. If we round down every second x.5 we counter this effect. That's why we round to the next even number.sum(seq(0.5,1e3,by=0.5))
with the sums of each of the rounded versions of the sequences?round
.