[datatable-help] rbind lists of list of data table

Eduard Antonyan eduard.antonyan at gmail.com
Tue Aug 11 16:12:09 CEST 2015


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 <statquant at outlook.com> 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
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150811/68a8e3aa/attachment.html>


More information about the datatable-help mailing list