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

not RObject -- logical negation of an R object

Description

Compute the logical negation of an R logical vector.

i1 : not RObject true

o1 = [1] FALSE

o1 : RObject of type logical

When the input contains multiple elements, the output will also contain multiple elements.

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

o2 = [1] FALSE  TRUE FALSE  TRUE

o2 : RObject of type logical

See also

Ways to use this method:


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