XRanges-class {IRanges} | R Documentation |
The XRanges
class is meant to be the virtual parent
for all Ranges
derivatives that exist externally
from R, such as search trees, databases, etc. It is the external
analog of the internal IRanges
.
The primary requirement for a XRanges
implementation is that it
is coercible to IRanges
, so that the data may be
imported into R. Several of the most important accessors
(start
, end
, width
) and utilities (reduce
,
gaps
) have default implementations for XRanges
instances
that simply coerce the XRanges
to an IRanges
and
delegate. Subclasses are responsible for optimized implementations of
those methods and should generally attempt to implement as much of the
Ranges
API as is feasible.
Michael Lawrence
The internal IRanges
;
IntervalTree
for an implementation.