powered by
Rotates an array about two specified dimensions by any number of 90 degree turns
arot(a, rights = 1,pair=1:2)
The array to be rotated
Integer; number of right angles to turn
A two-element vector containing the dimensions to rotate with default meaning to rotate about the first two dimensions
Robin K. S. Hankin
arev
a <- array(1:16,rep(2,4)) arot(a)
Run the code above in your browser using DataLab