Skip to content
Prev 163586 / 398506 Next

Bug in "transform"?

On Tue, 02 Dec 2008 17:37:44 +0100, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:

            
Ok..I got it, it is an usual pain with R: vectors with length 1 are  
recycled and data.frames with nrows=1 and arrays with dim[1]=1 are not.

Will have to use

mtcars[c("t1","t2")]<-with(mtcars, cbind(t1=..., t2=...))

or rewrite transform.data.frame  myself.

Thanks a lot,

Vitalie.