.BG
.VE $Header: /usr3/s/current/s/.help/RCS/col,v 1.2 83/12/30 19:25:45 rab Exp $
.FN col
.FN row
.TL
col row: Matrix Column and Row Numbers
.CS
col(x)
row(x)
.PP
.AG x
matrix.  Missing values (NAs) are allowed.
.PP
.RT
integer matrix, containing the row number or column number
of each element.  If `z<-row(x)', `z[i,j]' is i;
if `z<-col(x)', `z[i,j]' is `j'.
.PP
See also `diag' for diagonal of matrix.
.EX
x[row(x)>col(x)]       # get strict lower triangle of x
x[row(x)\-col(x)==1]     # first sub-diagonal
.KW array*
.KW matrix
.KW attribute
.WR
