Description Usage Arguments Value Author(s) See Also Examples
This function provides transposing of arrays or vectors as swapping their first two dimensions.
t (array)
can be enabled via setMethod
, see the example.
1 | ta(x)
|
x |
an array |
the array with the first two dimensions swapped.
Claudia Beleites
1 2 3 4 5 6 7 | a <- array (1 : 24, 4:2)
a
ta (a)
setMethod ("t", "array", ta)
t (a)
removeMethod ("t", "array")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.