[R] cbind a list of matrices

2005-07-16 Thread Mauro Gasparini
Dear users, I have a list of several matrices with the same number of columns, how do I rbind them all with a vectorized command? A related simpler question is, how do I vectorize the instruction that rbinds together several copies of the same matrix? Thanks. -- Mauro Gasparini

Re: [R] cbind a list of matrices

2005-07-16 Thread Ted Harding
On 16-Jul-05 Mauro Gasparini wrote: Dear users, I have a list of several matrices with the same number of columns, how do I rbind them all with a vectorized command? A related simpler question is, how do I vectorize the instruction that rbinds together several copies of the same matrix?

Re: [R] cbind a list of matrices

2005-07-16 Thread Peter Dalgaard
(Ted Harding) [EMAIL PROTECTED] writes: On 16-Jul-05 Mauro Gasparini wrote: Dear users, I have a list of several matrices with the same number of columns, how do I rbind them all with a vectorized command? A related simpler question is, how do I vectorize the instruction that

Re: [R] cbind a list of matrices

2005-07-16 Thread S.O. Nyangoma
Didn't you simply try: A-matrix(c(1.1,1.2,1.3,1.4,1.5,1.6),ncol=3) B-matrix(c(2.1,2.2,2.3,2.4,2.5,2.6),ncol=3) C-matrix(c(3.1,3.2,3.3,3.4,3.5,3.6),ncol=3) A [,1] [,2] [,3] [1,] 1.1 1.3 1.5 [2,] 1.2 1.4 1.6 B [,1] [,2] [,3] [1,] 2.1 2.3 2.5 [2,] 2.2 2.4 2.6