Adjust population raster to match values from shapefile
Source:R/adjust-raster.R
adjust_pop_by_shp.Rd
Adjust population raster to match values from shapefile
Arguments
- input_raster
A SpatRaster (or RasterLayer) objects that will be adjusted such that the areal sums match the target column in ref_shp.
- ref_shp
A sf polygon object.
- col_name
A character string the identifies which column in ref_shp will be used to scale input_raster (this column must have numerical values and should not contain NAs).
- output_class
Either "terra" (default) or "raster".