Re: [R] maximum over one dimension of a 3-dimensional array

2009-05-28 Thread David Winsemius
On May 28, 2009, at 11:25 AM, eric lee wrote: Hi, I'm running R 2.7.2 on windows XP. I'd like to find the maximum of a 3-d array over it's third index to create a 2-d array. For example: x <- array(c(1,2,3,10,11,12,3:8),c(2,3,2)) x , , 1 [,1] [,2] [,3] [1,]13 11 [2,]2

[R] maximum over one dimension of a 3-dimensional array

2009-05-28 Thread eric lee
Hi, I'm running R 2.7.2 on windows XP. I'd like to find the maximum of a 3-d array over it's third index to create a 2-d array. For example: > x <- array(c(1,2,3,10,11,12,3:8),c(2,3,2)) > x , , 1 [,1] [,2] [,3] [1,]13 11 [2,]2 10 12 , , 2 [,1] [,2] [,3] [1,]3