obtainRichness
: Function to obtain richness estimates from a fitISDM
object.This function is used to obtain richness estimates for a multi-species ISDM.
obtainRichness(
modelObject,
predictionData,
predictionIntercept,
sampleSize = 1,
inclProb = TRUE
)
An sf
data.frame object of richness at each sampling location.
A fitISDM
object of class modSpeceis
.
An sf
data.frame object of containing the locations and covariates that are predicted on.
The name of the prediction dataset to use in the model.
The size of the sampling area for the prediction intercept dataset. Defaults to 1
.
Include the individual probabilities for each species. Defaults to TRUE