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
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
2 matches
Mail list logo