| Working with Matrices |
| The ROWNAME= and COLNAME= Options in the PRINT Statement |
You can specify your own row and column headings. The easiest way is to create vectors that contain the headings and then display the matrix by using the ROWNAME= and COLNAME= options in the PRINT statement. For example, the following statements display row names and column names for a matrix:
names={Jenny, Linda, Jim, Samuel};
days={Mon Tue Wed Thu Fri};
mattrib coffee rowname=names colname=days;
print coffee;
Copyright © SAS Institute, Inc. All Rights Reserved.