Command Reference : Matrix Language Reference
  
 
@rows
Syntax: @rows(o)
Argument: matrix, vector, rowvector, sym, series, or group, o
Return: scalar
Returns the number of rows in the matrix object, o.
Example:
scalar sc1=@rows(m1)
scalar size=@rows(m1)*@columns(m1)
For series and groups @rows returns the number of observations in the workfile range. See also @columns.