From j@gorecki @ending from wit@edu@pl  Mon Jul  2 17:25:07 2018
From: j@gorecki @ending from wit@edu@pl (Jan Gorecki)
Date: Mon, 2 Jul 2018 17:25:07 +0200
Subject: [Rd] base::mean not consistent about NA/NaN
Message-ID: <CAOO9MKXXtUm=XJc-Wb7k=1ah5yheP-KMfFS3rQKZc7o6GfQF=w@mail.gmail.com>

Hi,
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))
    #[1] NA
    mean(c(NaN, NA))
    #[1] NaN

I created issue so in case of no replies here status of it can be looked up
at:
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17441

Best,
Jan

	[[alternative HTML version deleted]]



[Rd] base::mean not consistent about NA/NaN
Jan Gorecki