ichunk | R Documentation |
This returns an iterator that counts from one, returning integer sequences of a pre-specified length with each iteration up until an optional maximum value.
ichunk(chunksize, count = NULL)
chunksize |
How long should each sequence be? |
count |
What should be the maximum value returned by the iterator?
Above this value, the iterator will return |
An iterator function.
This does not return an iterator in the manner used by the iterators package, since those objects currently misbehave in an Rstudio live session.
myit <- ichunk(chunksize=10,count=15)
myit()
myit()
myit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.