grid_to_region.Rd
Aggregate Grid-Level Annual Values to Regional-Level
grid_to_region(grid_annual_value, SECTOR, rast_boundary)
A sf data frame of regional annual value
The grid_to_region
function aggregates grid-level annual values to regional scales using spatial mapping
weights and rasterized regional boundaries. This allows for the computation of regional annual
values for a specified sector.
if (FALSE) { # \dontrun{
reg_annual_value <- grid_to_region(grid_annual_value = pwc.hothaps.ann, SECTOR = "MAIZ_R", rast_boundary = country_raster)
} # }