apply(as.data.table(ll), 1, rbindlist) or if you don't care about keeping the original list as a list, use setDT instead of as.data.table
On Tue, Aug 11, 2015 at 7:18 AM, statquant3 <[email protected]> wrote: > Say I have a list of list of data.tables > > l <- list( data.table(a=rnorm(3), b=rnorm(3)) , data.table(c=rnorm(12), > d=rnorm(12)) ) > ll <- list() > ll[[1]] <- l > ll[[2]] <- l > > Is there a smart use of rbindlist or use in conjusction with *apply/foreach > that can efficiently bind this list of list to a list of data.table element > by element (here we would get a list of 2 data.table with resp. 2columns, 6 > rows and 2 columns 24 rows) > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/rbind-lists-of-list-of-data-table-tp4710977.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > datatable-help mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help >
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
