Learn R Programming

sits (version 1.12.0)

.sits_split_data: Split a data.table or a matrix for multicore processing

Description

This function splits a data.table into a list of chunks for multicore processing.

Usage

.sits_split_data(data, ncores, ml_model)

Arguments

data

Data (data.table or matrix).

ncores

Number of cores for processing.

ml_model

Machine learning model which is part of the object.

Value

List of pairs of positions (first row, last row) to be assigned to each core.