I mistakenly tried to rbind_all() on a list of vectors, and did not get what I was expecting.
Perhaps raise an exception in the case where arguments aren't data.frames? Or is the result I go expected somehow?
e.g.
> ll <- list(c(1,2,3,4, 5), c(6, 7, 8, 9, 10))
> do.call(rbind, ll)
[,1] [,2] [,3] [,4] [,5]
[1,] 1 2 3 4 5
[2,] 6 7 8 9 10
> rbind_all(ll)
c(1, 2, 3, 4, 5) c(6, 7, 8, 9, 10)
1 1 NA
2 2 NA
3 3 NA
4 4 NA
5 5 NA
6 NA 6
7 NA 7
8 NA 8
9 NA 9
10 NA 10
>
I mistakenly tried to rbind_all() on a list of vectors, and did not get what I was expecting.
rbind_all() only seems to work with data.frames (as with the rest of dplyr)
Perhaps raise an exception in the case where arguments aren't data.frames? Or is the result I go expected somehow?
e.g.