compute.disk.frame: Force computations. The results are stored in a folder.

View source: R/compute.r

compute.disk.frameR Documentation

Force computations. The results are stored in a folder.

Description

Perform the computation; same as calling cmap without .f and lazy = FALSE

Usage

## S3 method for class 'disk.frame'
compute(x, name = NULL, outdir = tempfile("tmp_df_", fileext = ".df"), ...)

Arguments

x

a disk.frame

name

If not NULL then used as outdir prefix.

outdir

the output directory

...

Passed to 'write_disk.frame'

Examples

cars.df = as.disk.frame(cars)
cars.df2 = cars.df %>% cmap(~.x)
# the computation is performed and the data is now stored elsewhere
cars.df3 = compute(cars.df2)

# clean up
delete(cars.df)
delete(cars.df3)

disk.frame documentation built on Aug. 24, 2023, 5:09 p.m.