How to ungroup list columns in data.table?
tidyr provides the unnest function that help expanding list columns. This is similar to the much (20x) faster ungroup function in kdb. I am looking for a similar (but much faster) function that, assuming a data.table that contains several list columns, each with the same number of element on each row, would expand the data.table. This an extension of this post . library(data.table) library(tidyr) t = Sys.time() DT = data.table(a=c(1,2,3), b=c('q','w','e'), c=list(rep(t,2),rep(t+1,3),rep(t,0)), d=list(rep(1,2),rep(20,3),rep(1,0))) print(DT) a b c d 1: 1 q 2016-01-09 09:55:14,2016-01-09 09:55:14