Command Reference
:
Function Reference
:
Function Reference: R
@rilast
By-Row Statistics
Indices of last non-missing value in rows of group.
Column indices of last non-missing value in each row of the group.
Syntax:
@rilast
(
x)
x
: group
Return: series
For each observation
corresponding to a row
in the group of
series, identify the column containing the last non-missing value in the row.
Examples
show @rilast(g
returns a linked series of the indices corresponding to the last non-missing observations in the rows of group
g
.
Cross-references
See also
@rfirst
,
@rlast
, and
@rifirst
.