[Rd] A different error in sample()

Kim Seonghyun kim@@eonghyun @ending from eric@@on@com
Thu Sep 20 09:27:22 CEST 2018


I have not checked the source code, but I think it is because of banker's round.


Best regards,

-----Original Message-----
From: R-devel <r-devel-bounces using r-project.org> On Behalf Of Dario Strbenac
Sent: den 20 september 2018 03:00
To: r-devel <r-devel using r-project.org>
Subject: Re: [Rd] A different error in sample()

Good day,

The use of "rounding" also doesn't make sense. If The number is halfway between two integers, it is rounded to the nearest even integer.

> round(2.5)
[1] 2

Dario Strbenac
University of Sydney
Camperdown NSW 2050
R-devel using r-project.org mailing list

More information about the R-devel mailing list