| interval_join | R Documentation |
Joins each row of x to every row of y whose [start, end] interval
overlaps it – the one-dimensional analogue of a spatial bounding-box join
(data.table::foverlaps, GenomicRanges::findOverlaps). An optional
equality key in by restricts overlap testing to rows that share that key
(a chromosome, a sensor id), the same role a regular join's by plays.
interval_join(
x,
y,
start,
end,
by = NULL,
type = c("inner", "left"),
closed = TRUE,
n_threads = 4L,
suffix = ".y"
)
x |
A |
y |
A |
start |
The interval start columns, as |
end |
The interval end columns, in the same form as |
by |
Optional equality key restricting overlap to rows that match on
it, as |
type |
|
closed |
Logical. |
n_threads |
Integer. OpenMP threads for the per-group sweep. Default |
suffix |
Character. Suffix appended to |
Both sides are read into memory, then within each by group a sweep over
the interval endpoints emits each overlapping pair once, scaling with the
number of overlaps rather than the product of the row counts.
A vectra_node with all x columns followed by all y columns
(suffixed on collision).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.