powered by
Index of the minimum per row
which.pmin(...)
Vector of rankings
Numeric or character vectors of the same length
Determine the index of the minimum of the input vectors per row. Extension of which.min
which.min
See also which.min and which.pmax
which.pmax
which.pmin(1:10, 10:1) which.pmin(2, 10:1) which.pmin(mtcars)
Run the code above in your browser using DataLab