Given a matrix or data.framex,
t returns the transpose of x.
Usage
t(x)
Arguments
x
a matrix or data frame, typically.
Value
A matrix, with dim and dimnames constructed
appropriately from those of x, and other attributes except
names copied across.
Details
This is a generic function for which methods can be written. The
description here applies to the default and "data.frame" methods. A data frame is first coerced to a matrix: see as.matrix.
When x is a vector, it is treated as a column, i.e., the
result is a 1-row matrix.
References
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
The New S Language.
Wadsworth & Brooks/Cole.