summarize_models: Summarize HSI Models by Polygons

View source: R/summarize_models.R

summarize_modelsR Documentation

Summarize HSI Models by Polygons

Description

Summarizes the list of models by each polygon. This function makes a call to the summarize_by_poly function for each model in the hsi_models list. This function assembles those results into a single output data frame.

Usage

summarize_models(hsi_models, polys, progress = FALSE)

Arguments

hsi_models

list; A named list of recoded HSI models created using the recode_models function.

polys

sf; A polygons sf object.

progress

logical; TRUE displays a progress bar during processing.

Value

A data frame of model summaries containing the following fields for each model:

  • ID - Polygon unique identifier. Derived from polys' row.names.

  • hsi_<model_name> - HSI score mean for the polygon. Model name is derived from the raster data names attribute via names().

  • count_<model_name> - Count of cells for the polygon.

  • acres_<model_name> - Area in acres for the polygon.

  • hu_<model_name> - Habitat Units (HU) calculated by multiplying HSI by acres.


MVR-GIS/nybem documentation built on Feb. 9, 2023, 7:03 a.m.