Hi @aho,
I am going to merge this developments into develop-shp_mask branch if you agree.
Added new parameters into shp_mask() function:
- shp.system.name: any specified column name where to subset reg.ids. It can be different from NUTS, ADM, GADM conventions.
- region: Logical to add a new dimension in mask.
- target_crs: Target Coordinate Reference System
- check_valid: Whether to apply the function st_make_valid into the sf objects of the shapefile and coordinates.
- ...: Additional parameters to be added in the st_intersection call.