| ta {arrayhelpers} | R Documentation |
This function provides transposing of arrays or vectors as swapping their first two dimensions.
t (array) can be enabled via setMethod, see the example.
ta(x)
x |
an array |
the array with the first two dimensions swapped.
Claudia Beleites
a <- array (1 : 24, 4:2)
a
ta (a)
setMethod ("t", "array", ta)
t (a)
removeMethod ("t", "array")