Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

NROW Function

finds the number of rows of a matrix

NROW( matrix)

where matrix is a numeric or character matrix.

The NROW function returns a single numeric value that is the number of rows in matrix. If the matrix has not been given a value, the NROW function returns a value of 0.

For example, to let J contain the number of rows of the matrix S, use the statement

   j=nrow(s);

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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