Re: [R] rbind, data.frame, classes

2010-03-15 Thread Rob Forler
a hah, that works :) simple but sweet, thanks, Rob On Mon, Mar 15, 2010 at 1:59 PM, Henrique Dallazuanna wrote: > Try this: > > do.call(rbind, lapply(list(list1, list2), as.data.frame)) > > On Mon, Mar 15, 2010 at 3:42 PM, Rob Forler wrote: > > Hi, > > > > This has bugged me for a bit. First

Re: [R] rbind, data.frame, classes

2010-03-15 Thread Henrique Dallazuanna
Try this: do.call(rbind, lapply(list(list1, list2), as.data.frame)) On Mon, Mar 15, 2010 at 3:42 PM, Rob Forler wrote: > Hi, > > This has bugged me for a bit. First question is how to keep classes with > rbind, and second question is how to properly return vecotrs instead of > lists after turnin

[R] rbind, data.frame, classes

2010-03-15 Thread Rob Forler
Hi, This has bugged me for a bit. First question is how to keep classes with rbind, and second question is how to properly return vecotrs instead of lists after turning an rbind of lists into a data.frame list1=list(a=2, b=as.Date("20090102", format="%Y%m%d")) list2=list(a=2, b=as.Date("20090102"