Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krlmlr/fstplyr
A dplyr interface to fst
https://github.com/krlmlr/fstplyr
Last synced: about 2 months ago
JSON representation
A dplyr interface to fst
- Host: GitHub
- URL: https://github.com/krlmlr/fstplyr
- Owner: krlmlr
- Created: 2018-01-09T16:35:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-29T12:38:22.000Z (about 3 years ago)
- Last Synced: 2024-11-01T10:42:31.388Z (about 2 months ago)
- Language: R
- Homepage: https://krlmlr.github.io/fstplyr
- Size: 97.7 KB
- Stars: 33
- Watchers: 9
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - krlmlr/fstplyr - A dplyr interface to fst (R)
README
---
output:
github_document:
html_preview: false
---```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```# fstplyr
[![Travis-CI Build Status](https://travis-ci.org/krlmlr/fstplyr.svg?branch=master)](https://travis-ci.org/krlmlr/fstplyr)
[![Coverage status](https://codecov.io/gh/krlmlr/fstplyr/branch/master/graph/badge.svg)](https://codecov.io/github/krlmlr/fstplyr?branch=master)
[![CRAN status](http://www.r-pkg.org/badges/version/fstplyr)](https://cran.r-project.org/package=fstplyr)Provides a simple yet complete [dplyr](http://dplyr.tidyverse.org/) interface to [fst](http://www.fstpackage.org/) 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](http://tibble.tidyverse.org/).
## Example
```{r example}
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)
```## Installation
```r
# install.packages("remotes")
remotes::install_github("krlmlr/fstplyr")
```