[R] How to split a matrix into a few matrices?

2010-01-27 Thread ayu2008
Hi dear users, I try to split a matrix into a few matrices, for example, suppose that I have 1000X4 matrix from mvrnorm(1000,m,c) with m-matrix(c(0,0,0,2),4,1) and c-matrix(c(1.0,0.2,-0.5,0.3,0.2,1,0.2,-0.5,-0.5,0.2,1,0.2,0.3,-0.5,0.2,1),4,4,byrow=T) How to split the matrix into a. 2

Re: [R] How to split a matrix into a few matrices?

2010-01-27 Thread Henrique Dallazuanna
Try this: a - mvrnorm(100, m, c) On Wed, Jan 27, 2010 at 9:50 AM, ayu2008 ayuaz...@yahoo.com wrote: Hi dear users, I try to split a matrix into a few matrices, for example, suppose that I have 1000X4 matrix from mvrnorm(1000,m,c) with m-matrix(c(0,0,0,2),4,1)   and