How to rbind two matrix with different row numbers I have two matrix with different number of row, when I tried to combine them, there is error report:
A <- matrix (1:4, 2)
B <- matrix (6:11, 2)
rbind(A,B)
"Error in rbind(A, B): number of columns of matrices must match (see arg 2)"
I want
[,1] [,2] [,3]
[1,] 1 3
[2,] 2 4
[1,] 6 8 10
[2,] 7 9 11