.BG
.FN aperm
.TL
Array Permutations
.CS
aperm(a, perm)
.AG a
array to be permuted.  Missing values (`NA's) are allowed.
.AG perm
vector containing a permutation of the integers `1:n' where `n'
is the number of dimensions in the array `a'. The old dimension
given by `perm[j]' becomes the new `j'-th dimension.
.RT
array like `a', but with the observations permuted
according to `perm', e.g., if `perm' is `c(2,1,3)', the
result will be an array in which the old second dimension is
the new first dimension, etc.
.PP
Attribute `dimnames', if present, will be
appropriately permuted.
.SA
`t' for transpose of matrix.
.EX
  # turns 50 x 4 x 3 into 50 x 3 x 4
myiris <- aperm(iris,c(1,3,2))
  # make 150 x 4 matrix
myiris <- matrix(aperm(iris,c(1,3,2)),150,4)
.KW array
.KW algebra
.WR
