Description Usage Arguments Value Author(s) Examples
k-fold partitioning of a data set for model testing purposes. Each record in a matrix (or similar data structure) is randomly assigned to a group. Group numbers are between 1 and k
.
1 |
x |
vector, matrix, data.frame |
k |
number of groups |
by |
Optional argument. A vector or factor with sub-groups (e.g. species). Its length should be the same as the number of records in x |
a vector with group assignments
Robert J. Hijmans
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.