Skip to contents

This function processes spatial data (as an sf object), summarizes it based on the number of observations or distinct species, and generates a raster layer.

Usage

Efforts_SummarizeMaps(Data, NSp, Name, ClassOrder, Grid_SF, Grid_R)

Arguments

Data

An sf object containing spatial data, with a column named CellCode.

NSp

Logical. Whether to generate distinct species counts (TRUE) or total observation counts (FALSE).

Name

Character. Name of the count field and the prefix for the final raster layer's name.

ClassOrder

Character. The class and order combination (separated by an underscore) represented in the Data.

Grid_SF, Grid_R

Reference grid in the form of simple feature and raster.

Value

A processed terra raster object representing the summarized data.

Note

This function is not intended to be used directly by the user or in the IAS-pDT, but only used inside the Efforts_Process and Efforts_Summarize functions.

Author

Ahmed El-Gabbas