powered by
Perform a function on both disk.frames .x and .y, each chunk of .x and .y gets run by .f(x.chunk, y.chunk)
cmap2(.x, .y, .f, ...)map_by_chunk_id(.x, .y, .f, ..., outdir)
map_by_chunk_id(.x, .y, .f, ..., outdir)
a disk.frame
a function to be called on each chunk of x and y matched by chunk_id
not used
output directory
cars.df = as.disk.frame(cars) cars2.df = cmap2(cars.df, cars.df, ~data.table::rbindlist(list(.x, .y))) collect(cars2.df) # clean up cars.df delete(cars.df) delete(cars2.df)
Run the code above in your browser using DataLab