Open amd112 opened 1 year ago
overlaps_area <- no_use %>%
st_join(interest_area %>% st_as_sf(), st_intersects)
Error in
bind_rows()
:! Argument 1 must be a data frame or a named atomic vector.
Error in UseMethod("gather") : no applicable method for 'gather' applied to an object of class "character"
1) They are both natively ESPG 4326!
2) updated to overlaps_area <- no_use %>% st_join(interest_area, left = F)
which passes the identical()
check.
3) I haven't actually used any of the drive code yet so I think we should come back to this once that section is either implemented or removed [e: it was referencing pools_drive_zone_15min
instead of land_drive_zone_15min
- fixed]
4) what did you fix? what code did you change?
Error in UseMethod("gather") : no applicable method for 'gather' applied to an object of class "character"
I get the same 68% number when summing up the blocks to get the 'near a pool percent'. The only issue on the website 68% is written as being not near a pool...
mutate(total_area = as.numeric(st_area(.)), area_within_pool_zone = replace_na(area_within_pool_zone, 0), perc_area = (total_area - area_within_pool_zone)/total_area,
# get rid of tiny measurement errors like -0.000000001
perc_area = ifelse(perc_area < 0, 0, perc_area),
# scale pop by (assumed) % not in zone
pop = value * perc_area,
tot_pop = value) %>%
select(-total_area, -area_within_pool_zone, -value)
- They are both natively ESPG 4326!
- updated to
overlaps_area <- no_use %>% st_join(interest_area, left = F)
which passes theidentical()
check.- I haven't actually used any of the drive code yet so I think we should come back to this once that section is either implemented or removed [e: it was referencing
pools_drive_zone_15min
instead ofland_drive_zone_15min
- fixed]- what did you fix? what code did you change?
https://github.com/NewYorkCityCouncil/pool_access/blob/ba2bc980c65bcdcde64c0f8cf37bd31657a12507/code/01_get_isochrones.R#L144 https://github.com/NewYorkCityCouncil/pool_access/blob/ba2bc980c65bcdcde64c0f8cf37bd31657a12507/code/01_get_isochrones.R#L147
Particular issues I'd like extra eyes on: