[R] how to cut a multidimensional array along a chosen dimension and store each piece into a list

2011-01-17 Thread Sean Zhang
Dear R-Helpers, I wonder whether there is a function which cuts a multiple dimensional array along a chosen dimension and then store each piece (still an array of one dimension less) into a list. For example, arr - array(seq(1*2*3*4),dim=c(1,2,3,4)) # I made a point to set the length of the

Re: [R] how to cut a multidimensional array along a chosen dimension and store each piece into a list

2011-01-17 Thread Hadley Wickham
On Mon, Jan 17, 2011 at 2:20 PM, Sean Zhang seane...@gmail.com wrote: Dear R-Helpers, I wonder whether there is a function which cuts a multiple dimensional array along a chosen dimension and then store each piece (still an array of one dimension less) into a list. For example, arr -