Created
May 15, 2015 23:01
-
-
Save jschaub30/a5f687a922c8c41baa64 to your computer and use it in GitHub Desktop.
Convert JSON to CSV in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://www.kaggle.com/c/yelp-recruiting/forums/t/4116/convesio-of-json-files-to-csv-or-r-data-format | |
library(plyr) | |
library(RJSONIO) | |
con <- file('data.json', "r") | |
df <- ldply(fromJSON(con), data.frame) | |
close(con) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment