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

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o1 = TRUE

o1 : RObject of type logical
i2 : RObject false

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o2 = 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 RInterface/doc/objects.m2:182:0.