sge.split {Rsge}R Documentation

Splits an object and returns a list containing those segments

Description

This functions splits an object into a number of pieces as specified by ncl.

Usage

sge.split(x, ncl)

Arguments

x Object to be split (only supports matrix, array, data.frame, list, and vector)
ncl Number of segments that the object should be split into.

Details

This method is an internal helper method that is used by parApply to split the objects into segments that are distributed to nodes of an SGE cluster. This function relies on the splitIndices method from the snow package to determine how many rows each segment should have.

Value

List containing all split data segments.

Author(s)

Dan Bode


[Package Rsge version 0.6.1 Index]