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

new RObject from Sequence -- create an R pairlist from a sequence

Description

Converts a Macaulay2 Sequence to an R pairlist, the linked-list type used internally by R for function argument lists.

i1 : RObject (2, 3, 5)

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

o1 = 2, 3, 5

o1 : RObject of type pairlist

When any elements are Option objects, the keys become names.

i2 : RObject (baz => 3, qux => 4)

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

o2 = 3, 4

o2 : RObject of type pairlist

See also

Ways to use this method:


The source of this document is in RInterface/doc/objects.m2:353:0.