Re: [R] Need help on matrix manipulation

2010-03-29 Thread Dennis Murphy
Hi: This seems to work for your example: matrix(t(cbind(mat1, mat2, mat3)), ncol = 4, byrow = TRUE) HTH, Dennis On Mon, Mar 29, 2010 at 12:44 AM, Ron_M wrote: > > Dear all, > > Ket say I have 3 matrices : > > mat1 <- matrix(rnorm(16), 4) > mat2 <- matrix(rnorm(16), 4) > mat3 <- matrix(rnorm(1

[R] Need help on matrix manipulation

2010-03-29 Thread Ron_M
Dear all, Ket say I have 3 matrices : mat1 <- matrix(rnorm(16), 4) mat2 <- matrix(rnorm(16), 4) mat3 <- matrix(rnorm(16), 4) Now I want to merge those three matrices to a single one with dimension 4*3=12 and 4 wherein on resulting matrix, row 1,4,7,10 will be row-1,2,3,4 of "mat1", row 2,5,8,