Description Usage Arguments Details Value Examples
These functions provide versions of R's built-in binary comparison operators
that work with arbitrarily many arguments. ge
is the >=
operator, le
is <=
, eq
is ==
, lt
is
<
, and gt
is >
.
1 2 3 4 5 6 7 8 9 |
... |
Values to compare. |
If more than 2 arguments are passed, the result is the logical conjunction of the binary operator's return value for each pair of arguments (in order). For example, le(1,2,3) is equivalent to 1 <= 2 <= 3 (mathematically speaking; the second of those is not a valid R expression). In R, le(1,2,3) is equivalent to 1 <= 2 && 2 <= 3, and so on for more arguments.
The boolean result of the comparison.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.