overlap_object: Helper funtion to create data_overlap objects

View source: R/helpers.R

overlap_objectR Documentation

Helper funtion to create data_overlap objects

Description

Helper funtion to create data_overlap objects

Usage

overlap_object(data, species, longitude, latitude, method = "covmat",
               level = 95, variables = NULL)

Arguments

data

data.frame of species' occurrence records. Columns must include species, longitude, and latitude. Optionally, if variables is a matrix or data.frame, data must include more columns containing the values of at least two variables to be used for fitting ellipsoid* models.

method

(character) method to construct the ellipsoid that characterizes the species ecological niche. Available methods are: "covmat", "mve1", and "mve2". See details. Default = "covmat".

level

(numeric) the confidence level of a pairwise confidence region for the ellipsoid, expresed as percentage. Default = 95.

variables

(optional) RasterStack, matrix, or data.frame of at least two variables to represent a set of conditions relevant for overlap analyses.

Value

An object of class data_overlap for posterior use in overlap analyses.


marlonecobos/ellipsenm documentation built on Oct. 18, 2023, 8:09 a.m.