| Seq {Streamer} | R Documentation |
A Producer-class to generate a sequence (possibly
long) of numbers.
Seq(from = 1L, to=.Machine$integer.max, by = 1L, yieldSize=1L,
...)
from |
A starting value of any type (e.g., |
to |
An ending value, typically of the same type as |
by |
A value, typically of the same class as |
yieldSize |
A |
... |
Additional arguments passed to |
Use Seq to construct instances of this class.
See Producer Methods.
Internal fields of this class are are described with
getRefClass("Seq")$fields.
Internal methods of this class are described with
getRefClass("Seq")$methods() and
getRefClass("Seq")$help().
Martin Morgan mtmorgan@fhcrc.org
s <- Seq(1, 10, yieldSize=5)
while(length(y <- yield(s)))
print(y)