The do.call(FUN, list) function was designed to receive the FUN input function along with the input of the list list . It applies a function to each item in the list and then aggregates the results.
In his appeal
t4 <- rbind.data.frame(t3)
You try rbind enumerate data frames when the rbind.data.frame function expects to enter only one data frame instead of t3 .
You can use rbind.data.frame without do.call if you want. Assuming that there are only 5 elements in the t3 list, then the following should work:
t4 <- rbind.data.frame(t3[[1]], t3[[2]], t3[[3]], t3[[4]], t3[[5]])
As you can see, this will be tedious (and unreadable) quickly. This is the advantage of using do.call() .
source share