Macaulay2 » Documentation
Packages » RInterface » RObject » realPart(RObject)
next | previous | forward | backward | up | index | toc

realPart(RObject) -- real part of an R object

Description

Extract the real part of each element of an R complex vector, calling R's Re.

i1 : z = RObject(3 + 2*ii)

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

o1 = 3+2i

o1 : RObject of type complex
i2 : realPart z

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

o2 = 3

o2 : RObject of type double

See also

Ways to use this method:


The source of this document is in RInterface/doc/complex.m2:50:0.