This function compares two numeric vectors. The vector whose all elements smaller or equal to all elements of the other one where at least one element is smaller, will be the winner.
comparison(x, y)An integer, among 0, 1, 2.
Numeric vectors.
The function returns the index of the winner, meaning 1 or 2, corresponding to parameters `x` and `y`, respectively. If no vector meets the condition, 0 will be returned.