.BG M
.VE $Header: /usr3/s/current/s/data/.help/RCS/row,v 1.2 83/12/30 23:09:58 rab Exp $
.FN row
.TL
?row: Apply a Function to the Rows of a Matrix
.CS
?row(x, fun, arg1, ...)
.PP
.AG x
name of matrix.
Missing values (NAs) are allowed if `fun' accepts them.
.AG fun
(unquoted) name of function to be applied to the rows of the
matrix.
.AG argi
any other arguments that should be given to `fun'.
.RT
vector or matrix of results.  If each invocation of `fun'
produces a vector of length `n' (n>1), the result will be an
`nrow(x)' by `n' matrix.  Otherwise, the result will be a
vector of length `nrow(x)'.
.SH SEE ALSO
Function `apply'.
.EX
?row(y,median)    # row medians of matrix y
?row(y,mean,trim=.25)   #25% trimmed row means
.KW array*
.KW apply*
.WR
