batch_vector: Split Vector into Batches

View source: R/batch.R

batch_vectorR Documentation

Split Vector into Batches

Description

Internal helper to split a vector into batches with index tracking.

Usage

batch_vector(x, batch_size)

Arguments

x

Vector to split into batches.

batch_size

Integer. Maximum size of each batch.

Value

A list of lists, each containing: - 'value': The batch values - 'indices': The original indices of the values


huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.