Perform (repeated) spatial cross-validation of random walk optimization

rwSPCV(x, slide_plys, n_folds, repetitions, from_save = FALSE)

Arguments

x

Random walk grid search results (list) from multiple runouts

slide_plys

A SpatialPolygonsDataframe

n_folds

The number of folds (i.e. partitions)

repetitions

Number of repetitions

from_save

(Logical) if TRUE, will load save files from current working directory

Value

A vector containing numeric labels defining each fold