Convert presence points and a background area
into an sdm_data
object suitable for a
tidysdm
workflow.
sdm_data.Rd
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 withcrs
information- bg
A background area as an
sf
polygon or a raster mask (instars
orraster
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.- ...