[Rd] mean (PR#10864)
Greg Snow
Greg.Snow at imail.org
Thu Feb 28 18:47:05 CET 2008
Look again at the whole function of mean.default. All of the missing
values have already been removed if na.rm==TRUE before the call to
stats::median, so why waste time looking for missing values that are not
there.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
> -----Original Message-----
> From: r-devel-bounces at r-project.org
> [mailto:r-devel-bounces at r-project.org] On Behalf Of
> paulponcet at yahoo.fr
> Sent: Thursday, February 28, 2008 2:35 AM
> To: r-devel at stat.math.ethz.ch
> Cc: R-bugs at biostat.ku.dk
> Subject: [Rd] mean (PR#10864)
>
> Full_Name: Paul PONCET
> Version: 2.6.0
> OS: Windows 2000
> Submission from: (NULL) (83.137.240.218)
>
>
> Function 'mean.default' calls function 'stats::median' if
> 'trim >= 0.5'. In that case the call should be
> 'stats::median(x, na.rm = na.rm)' instead of
> 'stats::median(x, na.rm = FALSE)'.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list