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

Meta data storage in data.frames #12

Open
MansMeg opened this issue May 17, 2016 · 4 comments
Open

Meta data storage in data.frames #12

MansMeg opened this issue May 17, 2016 · 4 comments

Comments

@MansMeg
Copy link
Contributor

MansMeg commented May 17, 2016

Hi!

Im working with the pxweb R package and I have a problem that we seem to share, a standard on how to append meta data to R data.frame object.

I have been thinking of using an attribute, say "metadat" with a list with the metadata object. Have you given this problem any thoughts?

@hmalmedal
Copy link
Collaborator

I have thought about it, but I couldn't come up with a good solution. When printing a data frame, attributes are not shown, so it is not easy to discover them.

@MansMeg
Copy link
Contributor Author

MansMeg commented May 17, 2016

Thats true. But as a part of the rjsonstat package I guess one could create a new class that inherits from data.frame (maybe data.frame.meta) that only has a new print method for data.frames created by json-stat. I guess that should solve the problem?

@hmalmedal
Copy link
Collaborator

Perhaps. I'm not very familiar with creating new classes and methods.

@MansMeg
Copy link
Contributor Author

MansMeg commented May 17, 2016

I'm thinking of solutions for the pxweb package so I can try to implement something later on.

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

3 participants