gregridgeway / R4crim

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R4crim

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.

Table of contents

  1. Intro to R
  2. Dates and times
  3. Working with UCR data
  4. Working with NCVS data
  5. Regular expressions
  6. Introduction to SQL, Part 1
  7. Crime hotspot maps
  8. Introduction to SQL, Part 2
  9. Webscraping and Parallel Processing
  10. PPD shootings extracting from text geocoding
  11. Working with geographic data

About

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

License:Creative Commons Attribution Share Alike 4.0 International


Languages

Language:HTML 100.0%Language:R 0.0%Language:CSS 0.0%