cmap2 | R Documentation |
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)
.x |
a disk.frame |
.y |
a disk.frame |
.f |
a function to be called on each chunk of x and y matched by chunk_id |
... |
not used |
outdir |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.