Learn R Programming

segtest (version 2.0.0)

nextElem.arrayiter: Next element in an array

Description

This is applied to an arrayiter object to obtain the next sub-array along one of the dimensions.

Usage

# S3 method for arrayiter
nextElem(obj, ...)

Value

The next sub-array.

Arguments

obj

An arrayiter object

...

not used

Author

David Gerard

See Also

iter.array()

Examples

Run this code
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))

Run the code above in your browser using DataLab