aperm(a, perm, resize=TRUE)
a
| the array to be transposed. |
perm
| the subscript permutation vector. |
resize
|
a flag indicating whether the vector
should be resized as well as having its elements reordered
(default TRUE .)
|
a
, with subscripts permuted as
indicated by the array perm
. If resize
is TRUE
, the
matrix is reshaped as well as having its elements permuted.
The function t
provides a faster and more convenient
way of transposing matrices.
t
.