Description Usage Arguments Details Value Examples
Constructs an iterator that generates a sequence of evenly spaced values
starting with icount
. The step size is given by step
. By
default, the sequence is neverending unless the optional stop
is
provided.
1 |
start |
sequence's initial value |
step |
sequence's step size |
stop |
optional stopping point to sequence |
NOTE: Use a negative step
size to generate decreasing sequences.
Often used as an argument to imap
to
generate consecutive data points.
sequence's iterator
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | it <- icount()
iterators::nextElem(it)
iterators::nextElem(it)
iterators::nextElem(it)
it2 <- icount(start=5.5, step=1.5)
iterators::nextElem(it2)
iterators::nextElem(it2)
iterators::nextElem(it2)
it3 <- icount(start=1, stop=3)
iterators::nextElem(it3)
iterators::nextElem(it3)
iterators::nextElem(it3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.