splitIntoBatches: Split vector of n elements into batches

Description Usage Arguments Value Examples

View source: R/genericFunctions.R

Description

Given a total number of elements n and batch_size, contruct a vector of length n where

Usage

1
splitIntoBatches(n, batch_size)

Arguments

n

Length of the vector

batch_size

Size of each batch

Value

vector of integers where each integer occurs at most batch_size times.

Examples

1

kauralasoo/seqUtils documentation built on May 20, 2019, 7:42 a.m.