I am trying to convert a nested list into a data frame. I want to get a data frame from the 3 dimension. Until now I specify with the counter i which dimension of the nested list I getas data frame but I want to get the data frame together from dimension 1, 2 and 3.
Thanks for your help
l <- list(list(list(x = 1, y = 2, 3, 4),
list(x = 3, y = 4, 5, 6)),
list(list(x = 1, y = 2, 3, 4)),
list(list(x = 2, y = 3, 4, 5)))
i = 3
a <- data.frame(do.call(rbind, l[[i]]))