Learn R Programming

cape (version 3.1.2)

chunkV: Bins a vector into chunks

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

chunkV(V, num_chunks)

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.

Arguments

V

The vector to be divided into chunks

num_chunks

The number of chunks in which to bin the vector.