R: Divide Tasks for Distribution in a Cluster: Divide Tasks for Distribution in a Cluster

Description

This divides up 1:nx into ncl lists of approximately equal size, as a way to allocate tasks to nodes in a cluster.

It is mainly for internal use, but some package authors have found it useful.

Usage

1
splitIndices(nx, ncl)

Arguments

nx

Number of tasks.

ncl

Number of cluster nodes.

Value

A list of length ncl, each element being an integer vector.

Examples

1
splitIndices(20, 3)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.