Skip to content
Open Policing Project
HTML R Python Other
Branch: master
Clone or download
Daniel Jenson Daniel Jenson
Daniel Jenson and Daniel Jenson progress
Latest commit 2f94eb5 Aug 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib progress Aug 13, 2019
py progress Aug 1, 2019
resources
stan Clean comments Aug 1, 2019
synthetic_data progress Dec 5, 2018
.gitignore progress Feb 13, 2019
README.md progress Jul 1, 2019
data_readme.md progress Aug 7, 2019
init progress Sep 21, 2018
lookup progress Sep 21, 2018
run.R progress Aug 5, 2019
todo.txt progress Apr 29, 2019
tutorial.Rmd Calculate arrest rate in-line. Mar 12, 2019
tutorial.html Calculate arrest rate in-line. Mar 12, 2019

README.md

Open Policing Project (OPP)

Required System Packages

All Systems

  • R

Fedora

  • gdal-devel
  • proj-nad
  • proj-epsg
  • proj-devel
  • v8-314-devel (libv8-3.14-dev ubuntu)
  • libjpeg-turbo-devel

Mac

Getting Started

  1. [command line] Clone the repository
git clone https://github.com/stanford-policylab/opp.git
  1. [command line] Change directories
cd opp/lib
  1. [command line] Start R
R
  1. [R] install the required packages
install.packages(c(
  "assertr",
  "broom",
  "digest",
  "fs",
  "functional",
  "getopt",
  "here",
  "housingData",
  "jsonlite",
  "knitr",
  "lubridate",
  "lazyeval",
  "lutz",
  "magrittr",
  "maps",
  "parallel",
  "purrr",
  "rlang",
  "rmarkdown",
  "rgdal",
  "rstan",
  "scales",
  "sp",
  "splines",
  "suncalc",
  "tidyverse",
  "zoo"
))
  1. [R] load the main library
source("opp.R")
  1. [R] download some clean data
opp_download_clean_data("wa", "seattle")
  1. [R] load the clean data
d <- opp_load_clean_data("wa", "seattle")
You can’t perform that action at this time.