comparison | R Documentation |
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)
x , y |
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.
An integer, among 0, 1, 2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.