Re: [R] Convert List of Data.Frames to Data.Frame when List has NULL

2011-08-31 Thread Mark Ebbert
Yeah, I never would have come up with that one. Thanks! On Aug 31, 2011, at 2:18 PM, Jorge I Velez wrote: Hi Mark, Try do.call(rbind, tmp[!sapply(tmp, is.null)]) HTH, Jorge On Wed, Aug 31, 2011 at 4:02 PM, Mark Ebbert <> wrote: Dear R gurus, I trying to convert a list of data frames to one

Re: [R] Convert List of Data.Frames to Data.Frame when List has NULL

2011-08-31 Thread Jorge I Velez
Hi Mark, Try do.call(rbind, tmp[!sapply(tmp, is.null)]) HTH, Jorge On Wed, Aug 31, 2011 at 4:02 PM, Mark Ebbert <> wrote: > Dear R gurus, > > I trying to convert a list of data frames to one data frame, but one of the > values within the list is NULL, so I get the error "arguments imply > dif

[R] Convert List of Data.Frames to Data.Frame when List has NULL

2011-08-31 Thread Mark Ebbert
Dear R gurus, I trying to convert a list of data frames to one data frame, but one of the values within the list is NULL, so I get the error "arguments imply differing number of rows." Do you know of a quick way to tell R to combine all that are not null? Here is a simple example: > tmp<-list(