generate_pseudo_absences: Generate Pseudo-Absence Points Based on Presence Points,...

View source: R/generate_pseudo_absences.R

generate_pseudo_absencesR Documentation

Generate Pseudo-Absence Points Based on Presence Points, Covariates, and Study Area Polygon

Description

This function generates pseudo-absence points within the study area.

Usage

generate_pseudo_absences(
  presences,
  study_area,
  raster_stack,
  predictor_variables,
  coords = c("decimalLongitude", "decimalLatitude"),
  decimal_digits = NULL,
  attempts = 100
)

Arguments

presences

Data frame containing presence points.

study_area

Spatial polygon defining the study area ('sf' object).

raster_stack

'SpatRaster' object containing covariate data.

predictor_variables

Character vector of the predictor variables selected for this species.

coords

Character vector specifying the column names for latitude and longitude. Defaults to 'c("decimalLongitude", "decimalLatitude")'.

decimal_digits

An integer specifying the number of decimal places to which coordinates should be rounded.

attempts

Integer specifying the number of attempts to generate exact pseudo-absences. Defaults to 100.

Value

Data frame containing both presence and pseudo-absence points.


glossa documentation built on Oct. 15, 2024, 5:08 p.m.