Displaying 1 result from an estimated 1 matches for "carefullly".
Did you mean:
carefully
2006 Sep 20
2
Unexpected behavior of apply() over a 3d array
Dear listeRs,
I'm finding that apply() behaves strangely when used on a 3-d array. For
example:
> at <- array(1:27,dim=c(3,3,3))
> at
, , 1
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
, , 2
[,1] [,2] [,3]
[1,] 10 13 16
[2,] 11 14 17
[3,] 12 15 18
, , 3
[,1] [,2] [,3]
[1,] 19 22 25
[2,] 20 23 26