Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fst object can be used to access a fst data store as a data.frame object #40

Closed
MarcusKlik opened this issue Mar 20, 2017 · 1 comment
Assignees

Comments

@MarcusKlik
Copy link
Collaborator

MarcusKlik commented Mar 20, 2017

After initializing a fst object, the underlying fst file can be accessed in the same manner as a data.frame.

@MarcusKlik MarcusKlik added this to the Interface milestone Apr 16, 2017
@MarcusKlik MarcusKlik self-assigned this May 14, 2018
@MarcusKlik MarcusKlik modified the milestones: Interface, fst version 0.8.6 May 14, 2018
@MarcusKlik
Copy link
Collaborator Author

This was implemented in fst 0.8.4:

# some test fst file
fst::write_fst(data.frame(X = 1:10, Y = LETTERS[11:20]), "1.fst")

# get a data.frame-like reference object
ft <- fst::fst("1.fst")

# access object like a data.frame
ft[2:4, "Y"]
#> [1] L M N
#> Levels: K L M N O P Q R S T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant