Execute Spatial Intersection on Categorical Data

execute_zonal_cat(file = NULL, geom = NULL, ID = NULL, w = NULL, rcl = 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

w

a precomputed weighting grid produced with weighting_grid

rcl

a data.frame with columns names from and to. From should be the categorical values used in the raster, while to should be the categorical names to use in the output table headings. If left NULL (default) the headings will not be altered.

Value

a data.table