get_batch: Create Batches from an sf Object

View source: R/run_geelite.R

get_batchR Documentation

Create Batches from an sf Object

Description

Divides an sf object (grid) into a list of chunks, either based on a specified number of batches (batch_num) or a maximum chunk size (batch_size).

Usage

get_batch(grid, batch_size = NULL, batch_num = NULL)

Arguments

grid

[mandatory] (sf) The sf object to be split into chunks.

batch_size

[optional] (integer) Maximum rows per chunk. Must be set if batch_num is NULL.

batch_num

[optional] (integer) Total number of chunks to create. Must be set if batch_size is NULL.

Value

(list) A list of sf objects (chunks).


geeLite documentation built on Aug. 9, 2025, 1:08 a.m.