Re: [R] Slicing an array

2009-06-12 Thread Charles C. Berry
Jim, Is do.call( '[', list( array4d,TRUE,TRUE,TRUE,1 ) ) what you want? HTH, Chuck On Fri, 12 Jun 2009, Jim Lemon wrote: Hi all, I've been trying to work out how to slice an array of arbitrary dimension. I found a message showing how to stick two arrays together, but so far hav

Re: [R] Slicing an array

2009-06-12 Thread Gabor Grothendieck
See the abind package. On Fri, Jun 12, 2009 at 8:36 AM, Jim Lemon wrote: > Hi all, > I've been trying to work out how to slice an array of arbitrary dimension. I > found a message showing how to stick two arrays together, but so far have > been unable to transform that into what I need. Assume tha

[R] Slicing an array

2009-06-12 Thread Jim Lemon
Hi all, I've been trying to work out how to slice an array of arbitrary dimension. I found a message showing how to stick two arrays together, but so far have been unable to transform that into what I need. Assume that I have a four dimensional array for example: array4d , , 1, 1 [,1] [,