iterator_batch: Iterate over batch_size elements a time.

Description Usage Arguments Value Examples

Description

Iterate over batch_size elements a time.

Usage

1
2
3
iterator_batch(x, batch_size = 1L)

iterator_partition(x, part_size = 1L)

Arguments

x

an iterable atomic vector.

batch_size

batch size.

part_size

partition size.

Value

an iterator.

Examples

1
2
itr <- iterator_batch(500:5000, 32)
itr()

imlijunda/AwkwardMLTools documentation built on May 13, 2019, 11:33 a.m.