Language Reference |
transposes a matrix
where matrix is a numeric or character matrix or literal.
The T (transpose) function returns the transpose of its argument. It is equivalent to the transpose operator as written with a transpose postfix operator (`), but since some keyboards do not support the backquote character, this function is provided as an alternate.
For example, the following statements produce the matrix , as shown:
x={1 2, 3 4}; y=t(x);
Y 2 rows 2 cols (numeric) 1 3 2 4
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.