Command Reference : Function Reference : Function Reference: R
  
 
@rows
Number of rows.
Syntax: @rows(m)
m: matrix, vector, sym, series, group
Return: integer
For series and groups @rows returns the number of observations in the workfile range.
Examples
matrix m1 = @mnrnd(10, 3)
scalar sc2 = @rows(m1)
assigns the value 10 to the scalar object SC2.
series q = nrnd
series r = nrnd
series s = nrnd
series t = nrnd
group mygrp q r s t
vector g = @fill(@rows(q), @columns(mygrp))
creates a two-element vector G containing the number of rows of Q and the number of series in MYGRP.
Cross-references
See also @columns.