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

new RObject from Nothing -- create an R NULL object

Description

Converts Macaulay2's null to R's NULL.

i1 : RObject null

o1 = NULL

o1 : RObject of type NULL

Note that the null coalescing operator ?? treats R's NULL as null.

i2 : (?? RObject null) === null

o2 = true
i3 : RObject null ?? RObject 5

o3 = [1] 5

o3 : RObject of type integer

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:155:0.