In presence-background data the response column holds 1 for recorded presences and
0 for background (or “pseudo-absence”) points -- locations sampled across the study
area to characterise the available conditions rather than confirmed absences. This framing is common in
species distribution modelling, but the option suits any presence-only-style data (e.g. sightings,
occurrences or detections without reliable absences). When working with such data (specified by
presence_bg = TRUE), only presence records are used for specifying the folds (recommended). Consider a target presence point. The buffer is defined around this target point,
using the specified range (size). By default, the testing fold comprises only the target presence point (all background
points within the buffer are also added when add_bg = TRUE).
Any non-target presence points inside the buffer are excluded.
All points (presence and background) outside of buffer are used for the training set.
The methods cycles through all the presence data, so the number of folds is equal to
the number of presence points in the dataset.
For presence-absence data (and all other types of data), folds are created based on all records, both
presences and absences. As above, a target observation (presence or absence) forms a test point, all
presence and absence points other than the target point within the buffer are ignored, and the training
set comprises all presences and absences outside the buffer. Apart from the folds, the number
of training-presence, training-absence, testing-presence and testing-absence
records is stored and returned in the records table. If column = NULL and presence_bg = FALSE,
the procedure is like presence-absence data. All other data types (continuous, count or multi-class responses) should be
done by presence_bg = FALSE.