kfold_seq: Sequential k-fold partitioning

Description Usage Arguments Value See Also

Description

Modified version of the kfold function, that returns subsequent (not random) folds (consistent among runs)

Usage

1
kfold_seq(x, k = 5, by = NULL)

Arguments

x

a vector, matrix, data.frame, or Spatial object

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

Value

a vector with group assignments

See Also

kfold


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.