-
Obtain raw data from http://thehopreview.com/blog/chicago-brewery-list. This is in cleanBreweries.txt. ('clean', as in it needs to be cleaned.)
-
Run brew.py with cleanBreweries.txt as input and breweries.txt and brewAddress.csv as outputs. Yes, there are some redundant lines of code in there, but we all know this is what happens with incremental updates to the code. breweries.txt simply contains a cleaned up version of the full dataset (though it's not final). brewAddress.csv is formatted for the US Census Geocoder.
-
Submit brewAddress.csv to the US Census Geocoder for the geographic coordinates: https://geocoding.geo.census.gov/geocoder/locations/addressbatch?form This returns GeocodeResults.csv.
-
Run formatBrew.R with breweries.txt and GeocodeResults.csv as input to obtain breweries_final.csv (located in the R Shiny app folder called brews).
-
The directory 'brews/' houses the material to run the Shiny app. app.R reads in breweries_final.csv and outputs the app. To run this in R, run shiny::runApp('pathToShinyApp/app.R'). Note that some additional columns are created in the app itself; at some point, the creation of these should be migrated over to formatBrew.R so that they're present in breweries_final.csv.
-
Notifications
You must be signed in to change notification settings - Fork 1
echodroff/chicago-breweries
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published