Skip to content
Prev 181848 / 398513 Next

R's documentation

Thanks for your information. I am curious why in 2.8.1 the document was not changed. That's easier than writing something in NEWS. 

But I DO see 'sum' rather than 'mean' in 2.9.0 now. It's not reverted yet as the NEWS saying. And it's still documented to use 'mean'. 

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: Friday, May 29, 2009 12:28 PM
To: Zheng, Xin (NIH) [C]
Cc: r-help at r-project.org
Subject: Re: [R] R's documentation

Which version of R is this?  From the BUGS section in NEWS for R 2.9.0 
patched:

     o	median.default() was altered in 2.8.1 to use sum() rather
 	than mean(), although it was still documented to use mean().
 	This caused problems for POSIXt objects, for which mean() but
 	not sum() makes sense, so the change has been reverted.

So this was a bug, but it has already been fixed (see the comments in 
the posting guide and especially the FAQ about checking if things have 
already been changed).
On Fri, 29 May 2009, Zheng, Xin (NIH) [C] wrote: