How to dynamically list matrices as elements in a list in R [duplicate]
问题 This question already has answers here : Make a list of many objects from a vector of object names [duplicate] (2 answers) Closed 6 months ago . This post is similar to my other post Let's say if I have 4 matrices: x1 <- matrix(1:9, nrow = 3) x2 <- matrix(2:10, nrow = 3) x3 <- matrix(3:11, nrow = 3) x4 <- matrix(4:12, nrow = 3) And I want to put them into a list() in a way like this: [[1]] [[1]][[1]] [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 [[1]][[2]] [,1] [,2] [,3] [1,] 2 5 8 [2,] 3 6