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)
an array
the array with the first two dimensions swapped.
t
# NOT RUN { 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