I have a named list of data which contains named data frames.
mlst = list(test = list(df = data.frame(x = 1:10, y = 21:30), list(c(1:2))),
test2 = list(df = data.frame(x = 1:10, y = 21:30), list(c(1:2))))
mlst$test$df
mlst$test2$df
The function do.call(rbind,mlst)
do not work as this is not picking up only the data frames. How could I bind the rows of only the dataframes without a for loop?