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

iterator(RObject) -- iterate through an R object

Description

This returns an Iterator object that may be used to iterate through x.

i1 : i = iterator (RSymbol "iris")_"Petal.Length"

o1 = i

o1 : Iterator
i2 : next i

o2 = [1] 1.4

o2 : RObject of type double
i3 : next i

o3 = [1] 1.4

o3 : RObject of type double
i4 : next i

o4 = [1] 1.3

o4 : RObject of type double

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/RInterface/doc.m2:776:0.