Index of the last non-missing value in the data object.
Syntax: @ilast(m)
m: data object
Return: scalar
Returns a scalar containing the index of the last non-missing value of the data object. The series version uses the current workfile sample.
Examples
Let V be a vector of length 4 whose elements are 8.6, 0.3, NA, and NA. Then
= @ilast(v)
returns 2.
Cross-references
See also
@first,
@last, and
@ifirst.