R/split_batch.R
split_batch.Rd
Returns a list containing multiple vectors (n_groups). It splits the lenght of the vectors as fair as possible.
split_batch(.vec, n_groups)
A vector
The number of desired batches
A list of vectors
if (FALSE) { # \dontrun{ a <- 1:467 split_batch(a, n_groups=15) } # }