Carceral-Ecologies / Carceral-Proximity-Analysis

Working version can be found at...
http://critical-data-analysis.org/shiny/proximity/proximity-app/
GNU General Public License v3.0
1 stars 1 forks source link

Update Prison Data with Distance to Other Facilities #24

Closed lindsaypoirier closed 4 years ago

lindsaypoirier commented 4 years ago

Here we will create a new csv that appends to the prisons data columns that designate other types of facilities within 5000 meters, along with their distances to the prison. This will be done for:

So for one row in the prisons dataset, there will be several new columns:

The later columns will be set to 0 (perhaps this should be null) if there aren't 5 airports within 5000 meters. This will be the case for most rows; most only have one.

We will repeat the same strategy adding columns for closest__1 and closest___1_dist for each facility type listed above.

lindsaypoirier commented 4 years ago

The script for airports is complete and should be easy to amend for other sites.

see:

...in proximity-app folder

lindsaypoirier commented 4 years ago

This is done; see: cleaning_scripts/find_objects_proximate_prisons.R

The data is structured a bit differently than described above. Each row is a carceral facility and a proximate object, with variables including the object's ID, its site_type, its ranking of distance to the facility, and its distance to the facility.

The resulting data frame is in data-clean/prisons_with_facility_distances.csv