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.
Usage
interval_join(
x,
y,
start,
end,
by = NULL,
type = c("inner", "left"),
closed = TRUE,
n_threads = 4L,
suffix = ".y"
)Arguments
- x
A
vectra_node(the streamed / probe side).- y
A
vectra_node(the resident / build side).- start
The interval start columns, as
c("x_col" = "y_col")or a single name shared by both sides.- end
The interval end columns, in the same form as
start.- by
Optional equality key restricting overlap to rows that match on it, as
c("x_col" = "y_col")or a single shared name.NULL(default) tests every pair.- type
"inner"(default) keeps only overlapping pairs;"left"keeps everyxrow, fillingycolumns withNAwhere nothing overlaps.- closed
Logical.
TRUE(default) counts intervals that touch at an endpoint as overlapping;FALSErequires a strictly positive overlap.- n_threads
Integer. OpenMP threads for the per-group sweep. Default
4L.- suffix
Character. Suffix appended to
ycolumn names that collide withxnames. Default".y".