powered by
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
which.min
See also which.min and which.pmax
which.pmax
# NOT RUN { which.pmin(1:10, 10:1) which.pmin(2, 10:1) which.pmin(mtcars) # }
Run the code above in your browser using DataLab