R: Transpose arrays

ta {arrayhelpers} | R Documentation

## Transpose arrays

### 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

    ta(x)

### Arguments

`x` | an array

### Value

the array with the first two dimensions swapped.

### Author(s)

Claudia Beleites

### See Also

`t`

### Examples

    a <- array (1 : 24, 4:2)
    a
    ta (a)

    setMethod ("t", "array", ta)
    t (a)
    removeMethod ("t", "array")

[Package arrayhelpers version 1.0-20160527 Index]