I have this:
res.list<-list(
list(
structure(list(A = 1L, B = "X2", D = 1L), class = "data.frame", row.names = c(NA, -1L)),
structure(list(A = 1L, B = "X3, X14, X17", D = 3L), class = "data.frame", row.names = c(NA, -1L)),
structure(list(A = 1L, B = "X4, X14, X17", D = 3L), class = "data.frame", row.names = c(NA, -1L)))
,
list(
structure(list(A = 2L, B = "X17, X19", D = 2L), class = "data.frame", row.names = c(NA, -1L)),
structure(list(A = 2L, B = "X2, X17, X19", D = 3L), class = "data.frame", row.names = c(NA, -1L)),
structure(list(A = 2L, B = "X3, X17, X19", D = 3L), class = "data.frame", row.names = c(NA, -1L))))
What is the most efficient and generic way to do the procedure below?
rbind(do.call(rbind.data.frame,res.list[[1]]),
do.call(rbind.data.frame,res.list[[2]]))
Best regards;