Execute Spatial Intersection

execute_zonal(file = NULL, geom = NULL, ID = NULL, FUN = "mean", w = NULL)

Arguments

file

path to a gridded file (either .tif or .nc)

geom

sf object of aggregation units

ID

the name of the column providing the unique identified of each geom

FUN

an optional function or character vector, as described below

w

a precomputed weighting grid produced with weighting_grid,

Value

data.table