Command Reference : Function Reference : Function Reference: C
  
 
@clast
Last non-missing value in each column of the matrix.
Syntax: @clast(m)
m: matrix
Return: vector
Returns a vector containing the last non-missing value of each column of m.
Examples
Let M2 be an upper triangular matrix whose elements below the main diagonal are NAs. In this case,
= @clast(m2)
returns the main diagonal of M2 as a column vector.
Cross-references
See also @cfirst, @cifirst, and @cilast.
See also @first, @last, @ifirst, and @ilast.