reduce {intervals}R Documentation

Compactly re-represent the points in a set of intervals

Description

In general, Intervals and Intervals_full objects may be redundant, and the intervals they contain may be in arbitrary order. The reduce function re-represents the underlying subsets of the integers or the real line in the unique, minimal form.

Usage

## S4 method for signature 'Intervals_virtual':
reduce( x, check_valid = TRUE )

Arguments

x An "Intervals" or "Intervals_full" object.
check_valid Should validObject be called before passing to compiled code? Also see interval_overlap.

Value

A single object of appropriate class, compactly representing the union of all intervals in x.

See Also

See interval_union, which is really just a wrapper for reduce.


[Package intervals version 0.9.5 Index]