Description Usage Arguments Details Value Examples
These operators compare multiple arrays together, with broadcasting. The underlying functions powering the comparison operators are also exported for use with base R objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ## S3 method for class 'vctrs_rray'
e1 > e2
rray_greater(x, y)
## S3 method for class 'vctrs_rray'
e1 >= e2
rray_greater_equal(x, y)
## S3 method for class 'vctrs_rray'
e1 < e2
rray_lesser(x, y)
## S3 method for class 'vctrs_rray'
e1 <= e2
rray_lesser_equal(x, y)
## S3 method for class 'vctrs_rray'
e1 == e2
rray_equal(x, y)
## S3 method for class 'vctrs_rray'
e1 != e2
rray_not_equal(x, y)
|
e1, e2 |
Generally, the same as |
x, y |
Two vectors, matrices, arrays, or rrays. |
The comparison operators themselves rely on R's dispatching rules to
dispatch to the correct rray comparison operator. When comparing rrays with
base R matrices and arrays, this generally works fine. However, if you
compare classed objects like factor("x") > rray(1)
then a fall through
method is used and a warning is thrown. There is nothing we can do about
this. See ?groupGeneric
for more information on this.
The value of the comparison, with dimensions identical to the common dimensions of the inputs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.