Aggregate population rasters to a shapefile
aggregate_to_shp(brick, sf, max_adjacent = 100)
| 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 |
an sf object with columns for each layer in the raster brick