interval_complement-methods: Compute the complement of a set of intervals

interval_complementR Documentation

Compute the complement of a set of intervals

Description

Compute the complement of a set of intervals.

Usage

## S4 method for signature 'Intervals_virtual'
interval_complement(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

An object of the same class as x, compactly representing the complement of the intervals described in x.

Note

For objects of class "Intervals", closure on -Inf or Inf endpoints is set to match that of all the intervals with finite endpoints. For objects of class "Intervals_full", non-finite endpoints are left open (although in general, this package does not make a distinction between closed and open infinite endpoints).


intervals documentation built on Sept. 11, 2024, 9:05 p.m.