Re: [R] combining matrices from a list into a multidimensional array

2011-01-19 Thread Dennis Murphy
Hi: Try this: lapply(results, function(x) array(unname(unlist(x)), c(3, 3, 2))) HTH, Dennis On Wed, Jan 19, 2011 at 12:31 AM, Maas James Dr (MED) wrote: > I get some results back from running an iterative analysis in the form of a > list of matrices. What I would like to do with this list is

[R] combining matrices from a list into a multidimensional array

2011-01-19 Thread Maas James Dr (MED)
I get some results back from running an iterative analysis in the form of a list of matrices. What I would like to do with this list is combine it such that all the similar components get combined into a multidimensional array. If possible I'd like to put results[[1]]$resultmean and results[[2