The Opioid Environment Policy Scan provides access to data at multiple spatial scales to help characterize the multi-dimensional risk environment impacting opioid use in justice populations across the United States.
Removed an API key found lurking in one of the code files, and transformed the 2010 shapefiles to more closely align with their 2018 equivalents. Specifically:
Dropped duplicate columns (e.g. tracts2010 had two columns [STATE and STATEFP] containing the same data)
Renamed and reorganized attribute data to align with the OEPS Geography file metadata and 2018 shapefile attribute data (e.g. TRACT to TRACTCE, and GEO_ID to AFFGEOID).
Added a GEOID column based on the AFFGEOID column.
Added state abbreviations to the state file, pulled from the 2018 file.
Removed an API key found lurking in one of the code files, and transformed the 2010 shapefiles to more closely align with their 2018 equivalents. Specifically:
STATE
andSTATEFP
] containing the same data)TRACT
toTRACTCE
, andGEO_ID
toAFFGEOID
).GEOID
column based on theAFFGEOID
column.states2010
fromNA
to "00", which is the LSAD designation for states.The relevant R script is also included.