Description Usage Arguments Value
View source: R/randomwalk_spatial_cross_validation.R
Divides a spatial sample of polygons into irregularly shaped spatial partitions using k-means clustring. It uses the spatial coordinates defined by the polygon centroids.
1 | spcvFoldsPoly(x, n_folds = 5, seed_cv = 11082017)
|
x |
A SpatialPolygonsDataframe |
n_folds |
The number of folds (i.e. partitions) |
seed_cv |
The random seed defined to reproduce results |
A vector containing numeric labels defining each fold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.