[Rd] base::mean not consistent about NA/NaN
i@t@z@hn @ending from gm@il@com
Mon Jul 2 18:20:30 CEST 2018
The current behavior is as documented. See ?NA, which says
"Numerical computations using ‘NA’ will normally result in ‘NA’: a
possible exception is where ‘NaN’ is also involved, in which case
either might result"
On Mon, Jul 2, 2018 at 11:25 AM, Jan Gorecki <j.gorecki using wit.edu.pl> wrote:
> base::mean is not consistent in terms of handling NA/NaN.
> Mean should not depend on order of its arguments while currently it is.
> mean(c(NA, NaN))
> # NA
> mean(c(NaN, NA))
> # NaN
> I created issue so in case of no replies here status of it can be looked up
> [[alternative HTML version deleted]]
> R-devel using r-project.org mailing list
More information about the R-devel