I have lists of data frames that I want to combine into one. For instance:
ls1 <- list(data.frame(A = rnorm(3), B = rnorm(3)), data.frame(A = rnorm(3), B = rnorm(3)))
ls2 <- list(data.frame(A = rnorm(3), B = rnorm(3)), data.frame(A = rnorm(3), B = rnorm(3)))
ls3 <- list(data.frame(A = rnorm(3), B = rnorm(3)), data.frame(A = rnorm(3), B = rnorm(3)))
I found this answer on stackoverflow using mapply. I don't think this works with my case.
res1 <- mapply(c, ls1, ls2, ls3, SIMPLIFY = F)
res1 |> View()
It creates a list of length 2 with sublists of length 6. My desired output is this:
res2 <- append(ls1, ls2)
res2 <- append(res2, ls3)
res2 |> View()
I have more than 10 lists of data frames that I want to combine into one. Instead of using append, is there a more efficient way to combine them all in one list?

