create_folds_poligon: This function creates folds for samples collected in the form...

Description Usage Arguments Author(s) Examples

Description

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..

Usage

1
create_folds_poligon(outcome, polig, nfolds = 10, seeds = 313)

Arguments

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

Author(s)

Elpidio Filho, elpidio@ufv.br

Examples

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)

elpidiofilho/labgeo documentation built on May 14, 2019, 9:35 a.m.