createPartition {Hmsc} | R Documentation |
createPartition
Description
Constructs a partition vector given the number of folds and column of study design
Usage
createPartition(hM, nfolds = 10, column = NULL)
Arguments
hM |
a fitted |
nfolds |
number of cross-validation folds |
column |
name or index of the column in the |
Value
a vector describing the fold of each sampling unit
Examples
# Create 3 folds for a HMSC object
partition = createPartition(TD$m, nfolds = 3)
[Package Hmsc version 3.0-13 Index]