splitIndicesByLength {oligoClasses} | R Documentation

## Tools to distribute objects across nodes or by length.

### Description

Tools to distribute objects across nodes or by length.

### Usage

    splitIndicesByLength(x, lg, balance=FALSE)
    splitIndicesByNode(x)

### Arguments

`x` | object to be split
`lg` | length
`balance` | logical. Currently ignored

### Details

`splitIndicesByLength` splits `x` in groups of length `lg`.

`splitIndicesByNode` splits `x` in N groups (where N is the number of compute nodes available).

### Value

List.

### Author(s)

Benilton S Carvalho

### See Also

split

### Examples

    x <- 1:100
    splitIndicesByLength(x, 8)
    splitIndicesByLength(x, 8, balance=TRUE)
    splitIndicesByNode(x)

[Package oligoClasses version 1.44.0 Index]