unnest_listcol_dt | R Documentation |
Unnest list column
unnest_listcol_dt(dt, colname)
dt |
data.table with a list.column which is a list of data.tables |
colname |
name of column with list(data.tables...) |
data.table with the list column unnested
dt <- data.table(a = 1:2, b = list(data.table(listdt1 = 1:3, listdt2 = 2:4), data.table(listdt1 = 4:6, listdt2 = 8:10) )) colname <- "b" dt1 <- unnest_listcol_dt(dt, colname) dt1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.