Re: [R] Splitting a matrix

2010-09-16 Thread Bill.Venables
--- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Megh Dal Sent: Thursday, 16 September 2010 5:43 PM To: r-h...@stat.math.ethz.ch Subject: [R] Splitting a matrix Hi, I was trying to split the following matrix "dat": > set.seed(1) > da

[R] Splitting a matrix

2010-09-16 Thread Megh Dal
Hi, I was trying to split the following matrix "dat": > set.seed(1) > dat <- matrix(rnorm(4*16), 4, 16) > dat [,1] [,2] [,3][,4][,5][,6] [,7] [,8][,9] [,10] [,11] [1,] -0.6264538 0.3295078 0.5757814 -0.62124058 -0.016