Export#
# CSV
write.csv(output_dataset, file.path(output_dir, "social_vulnerability_index_ireland_2022.csv"), row.names = FALSE)
# GeoJSON
st_write(output_dataset_geom, file.path(output_dir, "social_vulnerability_index_ireland_2022.geojson"), delete_dsn=TRUE)
# Shapefile
st_write(output_dataset_geom, file.path(output_dir, "social_vulnerability_index_ireland_2022.shp"), append = FALSE)
Deleting source `../../3_outputs/Ireland/2022/social_vulnerability_index_ireland_2022.geojson' using driver `GeoJSON'
Writing layer `social_vulnerability_index_ireland_2022' to data source
`../../3_outputs/Ireland/2022/social_vulnerability_index_ireland_2022.geojson' using driver `GeoJSON'
Writing 18919 features with 46 fields and geometry type Multi Polygon.
Warning message in abbreviate_shapefile_names(obj):
“Field names abbreviated for ESRI Shapefile driver”
Deleting layer `social_vulnerability_index_ireland_2022' using driver `ESRI Shapefile'
Writing layer `social_vulnerability_index_ireland_2022' to data source
`../../3_outputs/Ireland/2022/social_vulnerability_index_ireland_2022.shp' using driver `ESRI Shapefile'
Writing 18919 features with 46 fields and geometry type Multi Polygon.
END
Social Vulnerability Ireland - Calculate Vulnerability#
Environment#
R Libraries#
The relvant R libraries are imported in to the kernal:
Output directory#
Set the GUID#
Load Data#
Import the data#
Prepare Data#
Combine data into a single indicator dataset#
Weight the indicator datas#
Process social vulnerability scores#
Calculate domain scores#
Calculate dimension scores#
Need to collate the domains into the dimensions
Calculate vulnerability score#
Correlations#
Add geometry#