Input data validation for build_aggregation_table()
build_aggregation_table_validation(
polygons,
id_raster,
polygon_id_field,
polygon_ids
)
Errors if checks fail; silently passes if checks pass
terra::SpatVector object. Should contain a unique ID field.
terra::SpatRaster object. ID raster created by build_id_raster()
for the polygons object. Should have the same CRS as polygons
and completely cover
it.
(character
) Unique identifier field in polygons
.
(vector, any type) Polygon identifiers from polygon_id_field
.
build_aggregation_table