split_into: Split a vector for parallel processing

View source: R/utils.R

split_intoR Documentation

Split a vector for parallel processing

Description

This function splits a vector into n parts of roughly equal size. These splits can be used for parallel processing. In general, n should be equal to the number of jobs you want to run, which should be the number of cores you want to use.

Usage

split_into(vec, n)

Arguments

vec

input vector

n

integer desired number of chunks

Value

list with n elements, each of roughly equal length


dselivanov/text2vec documentation built on Nov. 16, 2023, 6:37 p.m.