chunkV: Bins a vector into chunks

View source: R/chunkV.R

chunkVR Documentation

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)

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.


TheJacksonLaboratory/CAPE documentation built on Feb. 12, 2024, 4:32 p.m.