Skip to content

irufus/opp

 
 

Repository files navigation

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(
  "digest",
  "fs",
  "functional",
  "getopt",
  "glue",
  "here",
  "jsonlite",
  "knitr",
  "lubridate",
  "lutz",
  "maps",
  "purrr",
  "rgdal",
  "rlang",
  "rmarkdown",
  "rstan",
  "sp",
  "stringr",
  "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")

Releases

No releases published

Packages

No packages published

Languages

  • HTML 62.3%
  • R 33.2%
  • Python 3.6%
  • Other 0.9%