Skip to content
Prev 27064 / 63458 Next

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

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.
On Mon, 10 Dec 2007, ligges at statistik.uni-dortmund.de wrote: