The relational operators ==, !=, >, <, >=, and <= do the expected thing when comparing two RObject's.
|
|
|
|
|
|
|
|
One of the operands may be a Macaulay2 object. It will be converted to an RObject before the operation is performed.
|
|
Note that these operators return Macaulay2 Boolean objects and not R logical vectors. In particular, they are not useful for comparing vectors of length greater than 1. To do this, you may use RFunction to get the corresponding R operator as a function.
|