build_aggregation_table_validation: Validation: Build aggregation table

View source: R/build_aggregation_table.R

build_aggregation_table_validationR Documentation

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
)

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.

Value

Errors if checks fail; silently passes if checks pass

See Also

build_aggregation_table


mbg documentation built on April 4, 2025, 2:06 a.m.