Create a matrix summarizing species' attributes within cells of a PresenceAbsence object
Source:R/lets_maplizer.R
lets.maplizer.RdSummarize species atributes per cell in a presence-absence matrix.
Arguments
- x
A
PresenceAbsenceobject.- y
Species attribute to be considered. It must be a numeric attribute.
- z
Species names in the same order as the attributes and exactly the same as named in the
PresenceAbsenceobject.- func
A function to summarize the species' atribute in each cell (the function must return only one value).
- ras
If
TRUEthe raster object will be returned together with the matrix.
Value
The result can be both a matrix or a list cointaining
the follow objects:
Matrix: a matrix object with the cells' geographic
coordinates and the summarized species' attributes within them.
Raster: The summarized species'attributed maped in a
SpatRaster object.