Re: [R] splitting and stacking matrices

2011-03-01 Thread Gabor Grothendieck
On Tue, Mar 1, 2011 at 4:55 PM, Darcy Webber wrote: > Dear R users, > > I am having some difficulty arranging some matrices and wondered if > anyone could help out. As an example, consider the following matrix: > > a <- matrix(1:32, nrow = 4, ncol = 8) > a >     [,1] [,2] [,3] [,4] [,5] [,6] [,7]

[R] splitting and stacking matrices

2011-03-01 Thread Darcy Webber
Dear R users, I am having some difficulty arranging some matrices and wondered if anyone could help out. As an example, consider the following matrix: a <- matrix(1:32, nrow = 4, ncol = 8) a [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,]159 13 17 21 25 29 [2,]26