tgb_sample | R Documentation |
This function samples background sites used in species distribution modelling (SDM), using the target-group background (TGB) sampling method.
Sites are sampled, weighted by the number of sightings found in obs
.
tgb_sample(obs, nbackground = 10000)
obs |
Species observations as a data.frame, with a column for species name (must be labelled 'species') and column of index of observations to reflect presences. If the index column name is not found in 'data', it assumes row number. |
nbackground |
The number of background sites to sample. If the number
of sites specified is less than the available sites in |
A vector of indices corresponding to the data
argument, which can
be used to fit SDMs through link[s2bak]fit.s2bak,
fit.s2bak.so and fit.s2bak.s2
## See ?fit.s2bak
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.