fst: Parse,inspect and extract 'data.table' from '.fst' file

Description Usage Arguments Value See Also Examples

Description

An API for reading fst file as data.table.

Usage

1
2
3
4
5

Arguments

path

path to fst file

ft

An object of class fst_table, returned by parse_fst

pattern

Regular expression to match the column names

Value

parse_fst returns a fst_table class.

select_fst and filter_fst returns a data.table.

See Also

fst

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
fst::write_fst(iris,"iris_fst_test.fst")

parse_fst("iris_fst_test.fst") -> ft
ft
ft %>% select_fst("Se")
ft %>% select_fst("nothing")
ft %>% select_fst("Se|Sp")

ft %>% filter_fst(Sepal.Width > 3)
ft %>% filter_fst(Sepal.Length > 6 , Species == "virginica")
ft %>% filter_fst(Sepal.Length > 6 & Species == "virginica" & Sepal.Width < 3)

rm(ft)
unlink("iris_fst_test.fst")

hope-data-science/tidydt0 documentation built on Feb. 3, 2020, 12:04 a.m.