Skip to content
Notes for learning and applying R to questions about crime and the justice system
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
10_shapefiles_and_data Introducing a new section on extracting data from pdfs and geocoding Oct 31, 2018
.gitattributes Create .gitattributes Nov 6, 2018
01 Intro to R.Rmd
01_Intro_to_R.pdf Update Sep 4, 2018
02 Dates and times.Rmd add difftime() example Sep 18, 2018
02_Dates_and_times.html add difftime() example Sep 18, 2018
02_Dates_and_times.pdf fixed typos from kailin's review Jul 26, 2018
03 Working with UCR data.Rmd
03_Working_with_UCR_data.pdf Post updated html and pdf versions Oct 7, 2018
04 Working with NCVS data.Rmd Remove homework assignment solutions from notes Oct 7, 2018
04_Working_with_NCVS_data.html Post updated html and pdf Oct 7, 2018
04_Working_with_NCVS_data.pdf Post updated html and pdf Oct 7, 2018
05 Regular expressions.Rmd -> dataInc Oct 6, 2018
05_Regular_expressions.html Fix typos Jul 25, 2018
05_Regular_expressions.pdf Corrected title Jul 26, 2018
06_Introduction_to_SQL1.html Post updated html versions Nov 20, 2018
06_Introduction_to_SQL1.pdf Add pdf to github Jul 28, 2018
07_Crime_Hotspot_Map.Rmd minor edit Feb 12, 2019
07_Crime_Hotspot_Map.pdf update html and pdf Feb 12, 2019
08_Introduction_to_SQL2.Rmd Before and After Table Check Nov 19, 2018
08_Introduction_to_SQL2.html update html Aug 7, 2018
09_Webscraping_and_Parallel_Processing.html update html and pdf Feb 13, 2019
09_Webscraping_and_Parallel_Processing.pdf update html and pdf Feb 13, 2019
10_PPD_shootings_extracting_from_text_geocoding.Rmd Note that crs can equal just the EPSG code Nov 20, 2018
10_PPD_shootings_extracting_from_text_geocoding.html Noted that all Boundaries_PSA.* files need to be in the 10_shapefiles… Nov 10, 2018
10_PPD_shootings_extracting_from_text_geocoding.pdf Replace a google map with a stamen map. Google maps no longer easily … Nov 7, 2018
11_Working_with_geographic_data.Rmd update with new version Nov 20, 2018
11_Working_with_geographic_data.pdf Renumber geography from 10 to 11 Oct 28, 2018
LICENSE Update Feb 13, 2019
_config.yml Set theme jekyll-theme-modernist Feb 25, 2019
chicago crime 20141124-20141209.RData Changed name of dataset to chicagoCrime Sep 22, 2017
htmlstyle.css Created style sheet for HTML version Sep 24, 2017


Notes for learning and applying R to questions about crime and the justice system

These notes form the basis of Penn Criminology's Criminal Justice Data Science course that I've taught since 2014. Students code in R to answer questions like "what happens to crime when big movies come out?" and "where are Chicago's crime hotspots?" and "which crimes happen inside LA's gang injunction areas?". On the way to answering these questions students learn about regular expressions, SQL, webscraping, parallel processing, geographic data, official data sources (UCR, NCVS, ACS), and basic data coding skills.

You can’t perform that action at this time.