Skip to content
Prev 310587 / 398506 Next

Selected matrices of an array and put into a list

One approach is:

BB <- rnorm(6*5*27)
dim(BB) <- c(6, 5, 27)

lapply(2:27, function (i) BB[, , i])


I hope it helps.

Best,
Dimitris
On 11/12/2012 8:56 AM, Haris Rhrlp wrote: