unnest {mlr3misc} | R Documentation |
Transforms each element of a list columns into its own column, possibly by reference.
unnest(x, cols, prefix = NULL)
x |
:: |
cols |
:: |
prefix |
:: |
x = data.table::data.table( id = 1:2, value = list(list(a = 1, b = 2), list(a = 2, b = 2)) ) print(x) unnest(x, "value")