Description Usage Arguments Author(s) Examples
This function creates folds for samples collected in the form of polygons.In this case all samples inside a polygon are placed in a fold avoiding the division in multiples folds..
1 | create_folds_poligon(outcome, polig, nfolds = 10, seeds = 313)
|
outcome |
vector with outcome variable |
nfolds |
number of folds to be created |
poligon |
vector with poligon id |
seed |
numeric seed to control random numbers generation |
Elpidio Filho, elpidio@ufv.br
1 2 3 4 5 | ## Not run:
dfall = df %>% select(classe, poligono, everything())
index = create_folds_poligon(dfall, class = classe, poligon = poligono, nfolds = 5, seed = 123)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.