search for: flipfoo

Displaying 1 result from an estimated 1 matches for "flipfoo".

Did you mean: filefoo
2003 May 26
4
spinning and flipping arrays
...put) > foo[1,,] [,1] [,2] [,3] [,4] [1,] 1 2 3 4 [2,] 5 6 7 8 [3,] 9 10 11 12 > foo[2,,] [,1] [,2] [,3] [,4] [1,] 13 14 15 16 [2,] 17 18 19 20 [3,] 21 22 23 24 flipping foo around its last coordinate would be done via > flipfoo <- foo[,,4:1] > flipfoo[1,,] [,1] [,2] [,3] [,4] [1,] 4 3 2 1 [2,] 8 7 6 5 [3,] 12 11 10 9 > flipfoo[2,,] [,1] [,2] [,3] [,4] [1,] 16 15 14 13 [2,] 20 19 18 17 [3,] 24 23 22 21 (a more general method would allow specifyin...