ell_predict: Predict mahalanobis and suitability from ellipsoidal virtual...

View source: R/ell_predict.R

ell_predictR Documentation

Predict mahalanobis and suitability from ellipsoidal virtual niche

Description

Predict mahalanobis and suitability from ellipsoidal virtual niche

Usage

ell_predict(data, features, longitude = NULL, latitude = NULL,
            tol = 1e-60, include_suitability = TRUE,
            include_truncated = TRUE)

Arguments

data

matrix, data.frame, or SpatRaster containing variables of interest included in ellipsoid features.

features

list of characteristics that defined the ellipsoid. This list ca be obtained using the function ell_features.

longitude

(character) if data is a data.frame or matrix, name of the column with longitudes (if present). Default = NULL.

latitude

(character) if data is a data.frame or matrix, name of the column with latitudes (if present). Default = NULL.

tol

(numeric) the tolerance for detecting linear dependencies. Default = 1e-8.

include_suitability

(logical) whether to include suitability predictions. Default = TRUE.

include_truncated

(logical) whether to include suitability predictions truncated based on ellipsoid limits (level). Default = TRUE.

Value

A list of predictions in vector or SpatRaster format, based on the features of the ellipsoid niche.


marlonecobos/evniche documentation built on Oct. 25, 2024, 4:03 a.m.