chunkV: Bins a vector into chunks

Description Usage Arguments Value

View source: R/chunkV.R

Description

This function is used to chunk a vector into bins. It is primarily used to divide jobs sent to a certain number of parallel clusters.

Usage

1
chunkV(V, num_chunks)

Arguments

V

The vector to be divided into chunks

num_chunks

The number of chunks in which to bin the vector.

Value

This function returns a list of length num_chunks. Each element in the list contains the elements of the vector that were assigned to that bin.


cape documentation built on Feb. 10, 2021, 5:06 p.m.