[Rd] Bug in base::mean.default ? (PR#12984)
han at enfor.dk
han at enfor.dk
Tue Sep 23 17:25:07 CEST 2008
In the body of base::mean.default the following piece of code is found:
if (trim >= 0.5)
return(stats::median(x, na.rm = FALSE))
Should this not be
if (trim >= 0.5)
return(stats::median(x, na.rm = na.rm))
where na.rm is supplied in the call to mean.default?
If considered a bug I can imagine why it has low practical importance...
Kind regards,
Henrik
More information about the R-devel
mailing list