powered by
This function provides transposing of arrays or vectors as swapping their first two dimensions. t (array) can be enabled via setMethod, see the example.
t (array)
setMethod
ta(x)
the array with the first two dimensions swapped.
an array
Claudia Beleites
t
a <- array (1 : 24, 4:2) a ta (a) setMethod ("t", "array", ta) t (a) removeMethod ("t", "array")
Run the code above in your browser using DataLab