knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Provides a simple yet complete dplyr interface to fst files. Currently only select()
and head()
make use of fst's superior performance, all other methods offload to the default data frame implementation. The data is always returned as a tibble.
path <- tempfile() dir.create(path) fst::write_fst(iris, file.path(path, "iris.fst")) fst::write_fst(mtcars, file.path(path, "mtcars")) library(fstplyr) src <- src_fst(path) src tbl(src, "mtcars") %>% select(mpg:wt, -drat, gear)
# install.packages("remotes") remotes::install_github("krlmlr/fstplyr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.