Re: [R] Transforming list into an array

2011-02-27 Thread Bill.Venables
5 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Luis Felipe Parra Sent: Monday, 28 February 2011 10:59 AM To: r-help Subject: [R] Transforming list into an array Hello. I have the following object which is a list of length

[R] Transforming list into an array

2011-02-27 Thread Luis Felipe Parra
Hello. I have the following object which is a list of length NumSim with each entry being a matrix of dimensions Ncurvas x 3: dW = replicate(NumSim,cbind(rnorm(Ncurvas),rnorm(Ncurvas),rnorm(Ncurvas)),simplify=F) I would like to transform it into an array of dimension Ncurvas x 3 x NumSim. Does a