Takes an emtools.species object and adds background points if they're missing. Looks for range raster first, then goes for environmental layers.
check.bg(
species,
env = NA,
nback = 1000,
bg.source = "default",
verbose = FALSE,
bias = NA
)
An enmtools.species object with background points.
An enmtools.species object
A SpatRaster containing environmental data.
Number of background points to generate, if any
Source for drawing background points. If "points", it just uses the background points that are already in the species object. If "range", it uses the range raster. If "env", it draws points at randome from the entire study area outlined by the first environmental layer.
Controls printing of various messages progress reports. Defaults to FALSE.
A SpatRaster representing estimated relative sampling bias. Used when bg.source is either "range" or "env".