Reads in all CoC shapefiles. Pre-2013 shapefiles are downloaded from HUD,
2013+ shapefiles are read from input_data
.
get_shapefiles(year, raw_coc_shapefiles, crs)
year | A numeric with the shapefile year. |
---|---|
raw_coc_shapefiles | A character vector of paths to shapefiles saved on disk. |
crs | A numeric with the coordinate reference system (CRS) to use for the shapefiles. |
A spatial data frame:
coc_number: CoC number
coc_name: CoC name
year: Year
geometry: The CoC's spatial data in the provided CRS
Prior to 2013, HUD released individual shapefiles for each CoC and grouped
them by state. This function handles downloading and extracting those
shapefiles in pre_2013_shapefile()
.