Skip to content
Back to formatted view

Raw Message

Message-ID: <20071220202036.CCD8F282EFF7@mail.pubhealth.ku.dk>
Date: 2007-12-20T20:20:36Z
From: Thomas Lumley
Subject: bug in by.data.frame, R-2.6.1 (PR#10506)

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