Transpose an array by permuting its dimensions and optionally resizing it.
1 2 3 4 5
the array to be transposed.
the subscript permutation vector, usually a permutation of
a flag indicating whether the vector should be
resized as well as having its elements reordered (default
logical indicating if the result should be of the
same class as
potential further arguments of methods.
A transposed version of array
a, with subscripts permuted as
indicated by the array
the array is reshaped as well as having its elements permuted, the
dimnames are also permuted; if
resize = FALSE then the
returned object has the same dimensions as
a, and the dimnames
are dropped. In each case other attributes are copied from
t provides a faster and more convenient way of
Jonathan Rougier, J.C.Rougier@durham.ac.uk did the faster C implementation.
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
t, to transpose matrices.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.