Skip to contents

Convert presence points and a background area into an sdm_data object suitable for a tidysdm workflow.

Usage

sdm_data(pres, bg, n = 500, abs = NULL, sample_options = list(), ...)

Arguments

pres

Points representing species occurrences. Should be an sf object with crs information

bg

A background area as an sf polygon or a raster mask (in stars or raster format)

n

Integer specifying the number of background or pseudo-absence points to sample from the background as specified by bg.

abs

Optionally an sf object with true absence data in the form of points.

...

Value

A sdm_data object inheriting from a tibble