[Rd] bug in by.data.frame, R-2.6.1 (PR#10506)

tlumley at u.washington.edu tlumley at u.washington.edu
Thu Dec 20 21:20:36 CET 2007


On Wed, 19 Dec 2007, Prof Brian Ripley wrote:

> It transpires that package survey relies on the current behaviour (which is 
> not new in 2.6.1: R 2.0.0 did it).
>
> The suggested fix is reasonable if 'data' was originally a data frame, but 
> the default method promotes vectors to data frames, and the data frame method 
> used to drop them back to vectors.
>
> I've backed the fix out of R-patched.
>
> I am not sure if the current undocumented behaviour on vectors is 100% 
> desirable, but will amend by.default in R-devel to preserve it.
>
> Thomas: I think svymean() needs not to assume that 1-column data frames will 
> be dropped.

Ok. I think that actually simplifies some things.

  I hope to have some time next week to catch up on a number of package 
issues.

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-devel mailing list