R/foverlaps.disk.frame.r
foverlaps.disk.frame.Rd
EXPERIMENTAL
A disk.frame
A disk.frame or a data.frame
character/string vector. by.x used in foverlaps
character/string vector. by.x used in foverlaps
passed to data.table::foverlaps and disk.frame::cmap.disk.frame
The output directory of the disk.frame
If TRUE then the merges will happen for chunks in df1 and df2 with the same chunk id which speed up processing. Otherwise every chunk of df1 is merged with every chunk of df2. Ignored with df2 is not a disk.frame
The compression ratio for fst
overwrite existing directory
library(data.table)
## simple example:
x = as.disk.frame(data.table(start=c(5,31,22,16), end=c(8,50,25,18), val2 = 7:10))
y = as.disk.frame(data.table(start=c(10, 20, 30), end=c(15, 35, 45), val1 = 1:3))
byxy = c("start", "end")
xy.df = foverlaps.disk.frame(
x, y, by.x = byxy, by.y = byxy,
merge_by_chunk_id = TRUE, overwrite = TRUE)
# clean up
delete(x)
delete(y)
delete(xy.df)