Skip to content
Prev 310461 / 398506 Next

as.data.frame(do.call(rbind, lapply)) produces something weird

Note that the column-wise conversion I suggested might be better
done on the matrix R before conversion to a data.frame.  E.g.
list(Letter="a", Integer=1L, Complex=1+1i),
           list(Letter="b", Integer=2L, Complex=2+2i))
'data.frame':   2 obs. of  3 variables:
 $ Letter : Factor w/ 2 levels "a","b": 1 2
 $ Integer: int  1 2
 $ Complex: cplx  1+1i 2+2i

In any case, a long list will use a lot of memory.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com