Spatial Joins and Centroids
The main goals for the include:
We will again make use to the sf
package:
We will work with wildfires data to demonstrate the principles of join by location
Spain is one of the countries worst affected by wildfires in recent times.
We try to match provinces with fires.
The latest year for which data is available is 2021.
To obtain this, we need to collect some data
First, go to https://gadm.org and download the shapefiles for Spain
Second, obtain wildfire data from the NASA website: https://firms.modaps.eosdis.nasa.gov
irms.modaps.eosdis.nasa.gov