buffering {blockCV} | R Documentation |
Use distance (buffer) around records to separate train and test folds
Description
This function is deprecated and will be removed in future updates! Please use cv_buffer
instead!
Usage
buffering(
speciesData,
species = NULL,
theRange,
spDataType = "PA",
addBG = TRUE,
progress = TRUE
)
Arguments
speciesData |
A simple features (sf) or SpatialPoints object containing species data (response variable). |
species |
Character. Indicating the name of the field in which species data (binary response i.e. 0 and 1) is stored. If |
theRange |
Numeric value of the specified range by which the training and testing datasets are separated.
This distance should be in metres no matter what the coordinate system is. The range can be explored by |
spDataType |
Character input indicating the type of species data. It can take two values, PA for presence-absence data and PB for
presence-background data, when |
addBG |
Logical. Add background points to the test set when |
progress |
Logical. If TRUE a progress bar will be shown. |