From tlumley at u.washington.edu  Thu Dec 20 21:20:36 2007
From: tlumley at u.washington.edu (tlumley at u.washington.edu)
Date: Thu, 20 Dec 2007 21:20:36 +0100 (CET)
Subject: [Rd] bug in by.data.frame, R-2.6.1 (PR#10506)
Message-ID: <20071220202036.CCD8F282EFF7@mail.pubhealth.ku.dk>

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



[Rd] bug in by.data.frame, R-2.6.1 (PR#10506)
tlumley at u.washington.edu