Macaulay2 » Documentation
Packages » RInterface » RObject » new RObject from Boolean
next | previous | forward | backward | up | index | toc

new RObject from Boolean -- create an R logical vector from a Boolean

Description

Converts a Macaulay2 Boolean to an R logical vector of length 1.

i1 : RObject true

o1 = [1] TRUE

o1 : RObject of type logical
i2 : RObject false

o2 = [1] FALSE

o2 : RObject of type logical

Another logical vector without a Macaulay2 equivalent is NA.

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/objects.m2:182:0.