src_fst: Open a directory with .fst files as data source

Description Usage Arguments Examples

View source: R/src.R

Description

Create a data source to access all .fst files in a directory with dplyr verbs.

Usage

1
src_fst(path)

Arguments

path

An existing directory

Examples

1
2
3
4
5
6
7
8
path <- tempfile()
dir.create(path)
fst::write_fst(iris, file.path(path, "iris.fst"))
fst::write_fst(mtcars, file.path(path, "mtcars"))

src <- src_fst(path)
src
dplyr::tbl(src, "mtcars")

krlmlr/fstplyr documentation built on Oct. 17, 2020, 4:58 a.m.