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
[EMAIL PROTECTED]
(801) 408-8111
 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Thursday, February 28, 2008 2:35 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to