Create a disk.frame from a folder

disk.frame(path, backend = "fst")

Arguments

path

The path to store the output file or to a directory

backend

The only available backend is fst at the moment

Examples

path = file.path(tempdir(),"cars")
as.disk.frame(cars, outdir=path, overwrite = TRUE, nchunks = 2)
#> path: "C:\Users\RTX2080\AppData\Local\Temp\RtmpCo1OFr/cars"
#> nchunks: 2
#> nrow (at source): 50
#> ncol (at source): 2
df = disk.frame(path)
head(df)
#>    speed dist
#> 1:     4    2
#> 2:     4   10
#> 3:     7    4
#> 4:     7   22
#> 5:     8   16
#> 6:     9   10
nchunks(df)
#> [1] 2
# clean up
delete(df)