imin
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Returns the index of smallest value of argument x.
- Usage
imin(x)
- Result
- The result is the index of the minimum value of x.
- if x is a scalar: the result is 0
- if x is a vector: the result is the index (row) of the minimum
- if x is a matrix: the result is the element index i of the minimum; the row is
int(i/nrow(x))
and column isi % nrow(x)