Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

T Function

transposes a matrix

T( 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 statements

   x={1 2, 3 4};
   y=t(x);
result in the matrix
                Y             2 rows      2 cols    (numeric)

                                     1         3
                                     2         4

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.