From Greg.Snow at imail.org  Thu Feb 28 18:47:05 2008
From: Greg.Snow at imail.org (Greg Snow)
Date: Thu, 28 Feb 2008 10:47:05 -0700
Subject: [Rd] mean (PR#10864)
In-Reply-To: <20080228093503.2742C282EFF8@mail.pubhealth.ku.dk>
References: <20080228093503.2742C282EFF8@mail.pubhealth.ku.dk>
Message-ID: <07E228A5BE53C24CAD490193A7381BBBF2A95D@LP-EXCHVS07.CO.IHC.COM>

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
> 



[Rd] mean (PR#10864)
Greg Snow