which.max and which.min will return the smallest index of the max or min value if there are ties. will return the smalles
which.max and which.min will return the smallest index of the max or min value if there are ties. will return the smalles