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

Preserve (atomic) attributes to data frames and data frame columns? #256

Open
SebKrantz opened this issue Mar 14, 2021 · 2 comments
Open
Assignees
Milestone

Comments

@SebKrantz
Copy link

Hello, thanks for developing this package. This question has probably be asked in some form but I did not come across it yet: It would be nice if data frame attributes (such as the class) and other atomic attributes to columns (such as variable labels) could be preserved in the format. For example If I load a survey into R from STATA file format using the haven library, I get a tibble with "label" attributes to the columns. It would be great if I can save that and load it again. Many people are managing data in commercial software like STATA, SPSS or SAS which are translated into R in slightly more complex file formats with additional attributes attached to the data frame or columns in the data frame.

@januz
Copy link

januz commented Apr 29, 2021

I came here with the same request! Even when not working with data from statistical packages like STATA, SPSS, or SAS, I like to label my data using the sjlabelled package for ease of switching between variable names and labels or values and labels, e.g., for plots and tables. One can use qs as it conserves all attributes, but I would love to use fst because of its capability of reading partial rows/columns from file. Thank you!

@benzipperer
Copy link

Just want to add my vote for this feature. We would love to use fst, but for now we're using arrow because of its compability with STATA-style label attributes available through haven.

@MarcusKlik MarcusKlik self-assigned this Nov 16, 2022
@MarcusKlik MarcusKlik added this to the fst v0.9.10 milestone Nov 16, 2022
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

4 participants