Iterates through all ellipses in a nicheR_community and calculates
predictions (suitability or Mahalanobis distance) using
predict.nicheR_ellipsoid.
Usage
# S3 method for class 'nicheR_community'
predict(object, newdata, prediction = "Mahalanobis", verbose = TRUE)Arguments
- object
A
nicheR_communityobject.- newdata
A
SpatRaster,data.frame, ormatrixcontaining at least the environmental variables used to create the reference ellipsoid in the community.- prediction
Character. The type of prediction to return. One of:
"Mahalanobis"(default),"suitability","Mahalanobis_trunc", or"suitability_trunc".- verbose
Logical. If
TRUE, prints progress messages. Default isTRUE.