Skip to content
Prev 261189 / 398502 Next

Arrange a multi-level list to a one-level list

Lisa -
    Are you looking for this?
+ matrix(sample(c(2,3), 4, replace = T), 2)),
+ list(matrix(sample(c(0,1), 6, replace = T), 2), matrix(sample(c(2,3), 6,
+ replace = T), 2)))
[[1]]
      [,1] [,2]
[1,]    0    0
[2,]    1    0

[[2]]
      [,1] [,2]
[1,]    3    2
[2,]    3    2

[[3]]
      [,1] [,2] [,3]
[1,]    1    0    1
[2,]    0    1    0

[[4]]
      [,1] [,2] [,3]
[1,]    2    2    2
[2,]    2    2    3

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Fri, 27 May 2011, Lisa wrote: