This function generates pseudo-absence points within the study area.
generate_pseudo_absences(
presences,
study_area,
raster_stack,
predictor_variables,
coords = c("decimalLongitude", "decimalLatitude"),
decimal_digits = NULL,
attempts = 100
)
Data frame containing both presence and pseudo-absence points.
Data frame containing presence points.
Spatial polygon defining the study area (`sf` object).
`SpatRaster` object containing covariate data.
Character vector of the predictor variables selected for this species.
Character vector specifying the column names for latitude and longitude. Defaults to `c("decimalLongitude", "decimalLatitude")`.
An integer specifying the number of decimal places to which coordinates should be rounded.
Integer specifying the number of attempts to generate exact pseudo-absences. Defaults to 100.