Aggregate Grid-Level Annual Values to Regional-Level

grid_to_region(grid_annual_value, SECTOR, rast_boundary)

Arguments

grid_annual_value

data.frame of grid-level annual value

SECTOR

choice of sector

rast_boundary

rasterized regional boundaries, 0.5 degree, Set to global extent

Value

A sf data frame of regional annual value

Details

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.

Examples

if (FALSE) { # \dontrun{
reg_annual_value <- grid_to_region(grid_annual_value = pwc.hothaps.ann, SECTOR = "MAIZ_R", rast_boundary = country_raster)
} # }