Learn R Programming

disk.frame (version 0.1.0)

compute.disk.frame: Compute without writing

Description

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

Usage

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

Arguments

x

a disk.frame

name

not used kept for compatibility with dplyr

outdir

the output directory

overwrite

whether to overwrite or note

...

NOT used. Kept for dplyr compatibility

Examples

Run this code
# NOT RUN {
cars.df = as.disk.frame(cars)
cars.df2 = cars.df %>% map(~.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)
# }

Run the code above in your browser using DataLab