Macaulay2 » Documentation
Packages » RInterface » RObject » RObject or RObject
next | previous | forward | backward | up | index | toc

RObject or RObject -- logical disjunction of R objects

Description

Compute the element-wise logical disjunction of two R logical vectors, calling R's |.

i1 : RObject true or RObject false

o1 = [1] TRUE

o1 : RObject of type logical

When the inputs contain multiple elements, the output will also contain multiple elements.

i2 : RObject {true, true, false, false} or RObject {true, false, true, false}

o2 = [1]  TRUE  TRUE  TRUE FALSE

o2 : RObject of type logical

One of the operands may be a Macaulay2 object. It will be converted to an RObject before the operation is performed.

i3 : {true, true, false, false} or RObject {true, false, true, false}

o3 = [1]  TRUE  TRUE  TRUE FALSE

o3 : RObject of type logical

See also

Ways to use this method:

  • RObject or RObject -- logical disjunction of R objects
  • RObject or Thing
  • Thing or RObject

The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/logical.m2:105:0.