| 1 |
\name{interval_union} |
| 2 |
|
| 3 |
\alias{interval_union} |
| 4 |
\alias{interval_union,Intervals_virtual-method} |
| 5 |
\alias{interval_union,missing-method} |
| 6 |
|
| 7 |
\title{Compute the union of intervals in one or more interval matrices} |
| 8 |
|
| 9 |
\description{ |
| 10 |
Compute the union of intervals in one or more interval matrices. The |
| 11 |
intervals contained in a single interval matrix object need not, in |
| 12 |
general, be disjoint; \code{interval_union}, however, always returns a |
| 13 |
matrix with sorted, disjoint intervals. |
| 14 |
} |
| 15 |
|
| 16 |
\usage{ |
| 17 |
\S4method{interval_union}{Intervals_virtual}(x, ..., check_valid = TRUE) |
| 18 |
|
| 19 |
\S4method{interval_union}{missing}(x, ..., check_valid = TRUE) |
| 20 |
} |
| 21 |
|
| 22 |
\arguments{ |
| 23 |
|
| 24 |
\item{x}{ An \code{"Intervals"} or \code{"Intervals_full"} object.} |
| 25 |
|
| 26 |
\item{\dots}{ |
| 27 |
Optionally, additional objects which can be combined with |
| 28 |
\code{x}. See \code{\link{c.Intervals}} for details on mixing |
| 29 |
different types of objects. |
| 30 |
} |
| 31 |
|
| 32 |
\item{check_valid}{ |
| 33 |
Should \code{\link{validObject}} be called before passing to |
| 34 |
compiled code? Also see \code{\link{interval_overlap}}. |
| 35 |
} |
| 36 |
|
| 37 |
} |
| 38 |
|
| 39 |
\details{ |
| 40 |
All supplied objects are combined using \code{\link[=c.Intervals]{c}} |
| 41 |
and then then passed to \code{\link{reduce}}. The \code{missing} |
| 42 |
method is only to permit use of \code{\link{do.call}} with named list, |
| 43 |
since no named element will typically match \code{x}. |
| 44 |
} |
| 45 |
|
| 46 |
\value{ |
| 47 |
A single object of appropriate class, compactly representing the union |
| 48 |
of all intervals in \code{x}, and optionally, in \code{...} as |
| 49 |
well. For class \code{"Intervals"}, the result will have the same |
| 50 |
\code{closed} values as \code{x}. |
| 51 |
} |
| 52 |
|
| 53 |
\seealso{ |
| 54 |
See \code{\link{reduce}}, which is used to produce the results. |
| 55 |
} |