Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fryenycc committed Sep 15, 2023
1 parent 22a7ac6 commit 357d066
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ Our timeframe for the analysis is from August 1, 2022 - August 31, 2023.
- Normalized the aggregated counts by the total number of properties facing, associated with, or that matched to the street.

###### Commercial Waste & Businesses
[Fill in]
- Using DCA, Vacant Storefronts and Restaurant Inspections data, we created a data set of businesses
- Using 311 data, subsetting to DSNY and commercial disposal/complaints data from August 2022 - present, we created a data set of violations and complaints related to businesses.
- We created 2000 ft hexagons and grouped both complaints and bussinesses within each hexagon
- We calculated the density of complaints and violations per business for each hexagon

###### Littering Complaints & Baskets
[Fill in]
- Using a similar methodology as above, we gathered litter basket data and litter basket 311 complaints, we grouped both by 2000 ft hexagons and calculated the density of complaints per litter basket for every hexagon.

#### Scripts
3 changes: 2 additions & 1 deletion code/dsny_biz-complaints-violations_2023.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ oath_sub[, bbl := paste0(boro,
str_pad(block, 5, "left", pad = 0),
str_pad(lot, 4, "left", pad = 0))]

# rm(oath)
rm(oath)
# get lat and lon from pluto
pluto <-
fread(
Expand Down Expand Up @@ -155,6 +155,7 @@ wdt[, cmpt := ifelse(nchar(unique_key)==8, 1, 0), by = "id"]
wdt[, vio := ifelse(nchar(unique_key) > 8, 1, 0), by = "id"]

# grab streets from LIONS; zip: 'https://data.cityofnewyork.us/download/2v4z-66xt/application%2Fx-zip-compressed'
# to understand geography better
dcm <- st_read("data/input/DCM_ArterialsMajorStreets.shp", "DCM_ArterialsMajorStreets") %>%
st_as_sf(crs = 4326) %>%
st_transform(2263)
Expand Down

0 comments on commit 357d066

Please sign in to comment.