Function that returns the row and column where the matrix reaches its minimum
函数返回的行和列的矩阵达到其最低
译者:生物统计家园网 机器人LoveR
描述----------Description----------
To find the row and column where a matrix reaches its minimum.
要找到的行和列的一个矩阵达到其最小值。
用法----------Usage----------
minindexmatrix(x)
参数----------Arguments----------
参数:x
A matrix
矩阵
值----------Value----------
A vector of length two is returned, of which the first (second) element indicates at which row (column) the matrix x reaches its minimum.
返回长度2的向量,其中的第一(第二)元素指示在哪一行(列)的矩阵x达到其最小值。
(作者)----------Author(s)----------
Sarah Gelper
参见----------See Also----------
which.min
which.min
实例----------Examples----------
a <- matrix(rnorm(20),ncol=4)
m <- minindexmatrix(a)