.allTuplesSortedCpp {GenomicTuples} | R Documentation

## An internal helper function to check that each tuple is sorted in increasing order; only used for tuples of size > 2.

### Description

An internal helper function to check that each tuple is sorted in increasing order; only used for tuples of size > 2.

### Usage

    .allTuplesSortedCpp(pos1, internal_pos, posm)

### Arguments

`pos1` | An integer vector.
`internal_pos` | An integer matrix.
`posm` | An integer vector.

### Details

.allTuplesSorted is adapted from http://stackoverflow.com/a/7601857. Strict inequalities are required.

### Value

TRUE if each tuple is sorted in strictly increasing order, FALSE otherwise.

[Package GenomicTuples version 1.18.1 Index]