View source: R/summarize_by_poly.R
summarize_by_poly | R Documentation |
Summarize the raster HSI model by polygon.
summarize_by_poly(hsi_model, polys, progress = TRUE)
hsi_model |
raster; A raster HSI model. |
polys |
sf; A polygon used to derive be summaries from the raster. |
progress |
logical; TRUE displays a progress bar during processing. |
A data frame containing polygons summarized by the following fields:
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.