get.batches: get.batches Split data into batches

get.batchesR Documentation

get.batches Split data into batches

Description

get.batches Split data into batches

Usage

get.batches(items, batch.size = NULL, shuffle = FALSE)

Arguments

items

A vector of items to be splitted into batches.

batch.size

Batch size. The last batch may contain less elements than the other batches which have batch.size elements each.

shuffle

Split the elements randomly in the batches.

Value

A list. Each element corresponds to one batch and contains a vector listing the elements in that batch.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("RPA")

Examples

# 

microbiome/RPA documentation built on April 9, 2023, 10:59 a.m.