:[EMAIL PROTECTED] On
Behalf Of threshold
Sent: Monday, December 03, 2007 7:25 PM
To: r-help@r-project.org
Subject: [R] 3D array
Hi, I deal with 3D array say:
, , 1
[,1] [,2] [,3] [,4] [,5]
[1,]147 10 13
[2,]258 11 14
[3,]369 12 15
, , 2
[,1
say your array is called "no.named.array".
then:
no.named.array[no.named.array == 0] <- NA
rowMeans(no.named.array, dims=2, na.rm=T)
b
On Dec 3, 2007, at 7:24 PM, threshold wrote:
Hi, I deal with 3D array say:
, , 1
[,1] [,2] [,3] [,4] [,5]
[1,]147 10 13
[2,]25
Hi, I deal with 3D array say:
, , 1
[,1] [,2] [,3] [,4] [,5]
[1,]147 10 13
[2,]258 11 14
[3,]369 12 15
, , 2
[,1] [,2] [,3] [,4] [,5]
[1,] 16 19 22 25 28
[2,] 17 20 23 26 29
[3,] 18 21 24 27 30
, , 3
3 matches
Mail list logo