Index of the minimum per row
which.pmin(...)
... | Numeric or character vectors of the same length |
---|
Vector of rankings
Determine the index of the minimum of the input vectors per row. Extension of which.min
See also which.min
and which.pmax
which.pmin(1:10, 10:1)#> [1] 1 1 1 1 1 2 2 2 2 2which.pmin(2, 10:1)#> [1] 1 1 1 1 1 1 1 1 1 2which.pmin(mtcars)#> [1] 8 8 8 9 8 9 8 9 9 9 9 8 8 8 8 8 8 8 8 8 9 8 8 8 8 8 8 8 8 8 8 8