View source: R/createPartition.R
createPartition | R Documentation |
Constructs a partition vector given the number of folds and column of study design
createPartition(hM, nfolds = 10, column = NULL)
hM |
a fitted |
nfolds |
number of cross-validation folds |
column |
name or index of the column in the |
a vector describing the fold of each sampling unit
# Create 3 folds for a HMSC object partition = createPartition(TD$m, nfolds = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.