ta: Transpose arrays

Description Usage Arguments Value Author(s) See Also Examples

Description

This function provides transposing of arrays or vectors as swapping their first two dimensions. t (array) can be enabled via setMethod, see the example.

Usage

1
ta(x)

Arguments

x

an array

Value

the array with the first two dimensions swapped.

Author(s)

Claudia Beleites

See Also

t

Examples

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")

arrayhelpers documentation built on Feb. 4, 2020, 5:06 p.m.