Aggregate population rasters to a shapefile

aggregate_to_shp(brick, sf, max_adjacent = 100)

Arguments

brick

brick of pops

sf

sf object (shapefile with country admin units)

max_adjacent

window to look at when matching cells with a population value, but no associated polygon id

Value

an sf object with columns for each layer in the raster brick