Learn R Programming

mbg (version 1.1.0)

build_aggregation_table_validation: Validation: Build aggregation table

Description

Input data validation for build_aggregation_table()

Usage

build_aggregation_table_validation(
  polygons,
  id_raster,
  polygon_id_field,
  polygon_ids
)

Value

Errors if checks fail; silently passes if checks pass

Arguments

polygons

terra::SpatVector object. Should contain a unique ID field.

id_raster

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.

polygon_id_field

(character) Unique identifier field in polygons.

polygon_ids

(vector, any type) Polygon identifiers from polygon_id_field.

See Also

build_aggregation_table