Skip to content

Commit

Permalink
fixed gang related offense
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjbe committed Jun 17, 2024
1 parent 30ac8e1 commit 1942021
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions R/ojo_apply_regex.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ ojo_apply_regex <- function(data,
# Emergency phone call -------------------------------------------------
emergency & (phone | call) ~ "Interfering With Emergency Call",

# Gang related offense -------------------------------------------------
gang ~ "Gang Related Offense",

# =====================================================================================================================
# Traffic / Motor Vehicles ============================================================================================
# Basic Traffic Stuff --------------------------------------------------
Expand Down
Binary file modified data/ojo_regex_cats.rda
Binary file not shown.
Binary file modified data/ojo_regex_flags.rda
Binary file not shown.
13 changes: 7 additions & 6 deletions inst/sandbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ library(ojodb)
library(tidyverse)
library(tictoc)

ds <- ojo_crim_cases(
districts = "all",
case_types = c("CF", "CM"),
file_years = 2022:2022,
) |>
ojo_collect()
# ds <- ojo_crim_cases(
# districts = "all",
# case_types = c("CF", "CM"),
# file_years = 2022:2022,
# ) |>
# ojo_collect()

# write_rds(ds, "./data/test-data-all.rds")
#
# beepr::beep()

# ds <- read_rds("./data/test-data-tr-all.rds")
# ds <- read_rds("./data/test-data-all.rds")
ds <- read_csv("~/Documents/GitHub/loft-sq781-estimate/local/cm_cf_2001_2023.csv")

# Using new regex --------------------------------------------------------------
tic()
Expand Down

0 comments on commit 1942021

Please sign in to comment.