Merge function for disk.frames
# S3 method for disk.frame
merge(x, y, by, outdir = tempfile(fileext = ".df"),
..., merge_by_chunk_id = FALSE, overwrite = FALSE)
a disk.frame
a disk.frame or data.frame
the merge by keys
The output directory for the disk.frame
passed to merge and map.disk.frame
if TRUE then only chunks in df1 and df2 with the same chunk id will get merged
overwrite the outdir or not
# NOT RUN {
b = as.disk.frame(data.frame(a = 51:150, b = 1:100))
d = as.disk.frame(data.frame(a = 151:250, b = 1:100))
bd.df = merge(b, d, by = "b")
# clean up cars.df
delete(b)
delete(d)
delete(bd.df)
# }
Run the code above in your browser using DataLab