| 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, the
intervals they contain may be in arbitrary order, and they may contain
non-informative intervals for which one or both endpoints are
NA. The reduce function re-represents the underlying
subsets of the integers or the real line in the unique, minimal form,
removing intervals with NA endpoints (with warning).
Usage
## S4 method for signature 'Intervals_virtual'
reduce( x, check_valid = TRUE )
Arguments
x |
An |
check_valid |
Should |
Value
A single object of appropriate class, compactly representing the
union of all intervals in x. All intervals in reduce(x)
have numeric (i.e., not NA) endpoints.
See Also
See interval_union, which is really just concatenates its
arguments and then calls reduce.