I would like to find a way to create a data.frame by using cbind() to join together many separate objects. For example, if A, B, C & D are all vectors of eq
cbind()
The do.call function is very useful here:
do.call
A <- 1:10 B <- 11:20 C <- 20:11 > do.call(cbind, list(A,B,C)) [,1] [,2] [,3] [1,] 1 11 20 [2,] 2 12 19 [3,] 3 13 18 [4,] 4 14 17 [5,] 5 15 16 [6,] 6 16 15 [7,] 7 17 14 [8,] 8 18 13 [9,] 9 19 12 [10,] 10 20 11