powered by
which.pmax(...)
which.pmax(1:10, 10:1) which.pmax(2, 10:1)
Run the code above in your browser using DataLab