iter.array | R Documentation |
Iterator over array
## S3 method for class 'array'
iter(obj, by = 1, recycle = FALSE, ...)
obj |
An array. |
by |
The dimension to iterate over. |
recycle |
Should the iterator reset? |
... |
not used |
An iterator. This is an S3 arrayiter object, used in conjunction with nextElem to iterate over one index of an array.
David Gerard
nextElem.arrayiter()
glist <- multidog_to_g(
mout = ufit,
ploidy = 4,
type = "all_gl",
p1 = "indigocrisp",
p2 = "sweetcrisp")
g <- iterators::iter(glist$g, by = 3)
head(iterators::nextElem(g))
head(iterators::nextElem(g))
head(iterators::nextElem(g))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.