[R] Matrix to list object

Ron_M ron_michael70 at yahoo.com
Mon Dec 28 12:20:11 CET 2009


let consider following matrix :

mat <- matrix(rnorm(45), 15)

Now I want  to convert it to a list object "mat_list", which will have 15
elements and each element will again be a matrix with 3 rows and 3 columns.

How can I do that?

Thanks,
-- 
View this message in context: http://n4.nabble.com/Matrix-to-list-object-tp989738p989738.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list