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

Categories / Attributes / Hours are still nested #34

Open
tootrackminded opened this issue May 3, 2017 · 1 comment
Open

Categories / Attributes / Hours are still nested #34

tootrackminded opened this issue May 3, 2017 · 1 comment

Comments

@tootrackminded
Copy link

Hi all,

I'm currently having some issues with the JSON to CSV --> my main objective is to create a flat file where hours, categories, and attributes are also completely flat (and looking at the code, it seems like that is the intent of the script). However, running the code provided, the categories, attributes, and hours are still in nested form as opposed to creating new columns for each category/binary for each row.

Here's a summary of output:

image

With respect to the script, I'm using exactly what's given here (except hard coded file path instead of taking it as an input).

Any advice would be greatly appreciated!

@banwarp
Copy link

banwarp commented Sep 5, 2018

Did you figure out how to flatten these data frames? The JSON files have extra quotations around those data frames, and when I read them into to R using jsonlite::stream_in, they are read as characters, not data frames.

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

No branches or pull requests

2 participants