Re: [R] Subarray specification problem

2010-12-18 Thread Roy Shimizu
On Fri, Dec 17, 2010 at 8:58 AM, Michael Friendly wrote: > Use aperm() to make time the first dimension > Reshape to a matrix (all other dimensions combined) > Do your selection on X[1,] > aperm() to Permute back To Michael, thanks! I copy my implementation of Michael's idea at the end of this p

Re: [R] Subarray specification problem

2010-12-17 Thread Michael Friendly
Use aperm() to make time the first dimension Reshape to a matrix (all other dimensions combined) Do your selection on X[1,] aperm() to Permute back On 12/16/2010 11:00 AM, Roy Shimizu wrote: Hi. I'm new to R, and I'm still learning R's system for addressing subsets of data structures. I'm part