createfolds: Create CV Folds

Description Usage Arguments Details Value References

View source: R/utility_functions.R

Description

createfolds splits the data into k groups. Taken from the caret package (see references for details)

Usage

1
createfolds(y, k = 10, list = FALSE, returnTrain = FALSE)

Arguments

y

vector of response

an

integer for the number of folds.

Details

For numeric y, the sample is split into groups sections based on percentiles and sampling is done within these subgroups

Value

A vector of CV fold ID's for each observation in y

References

http://topepo.github.io/caret/splitting.html


sahirbhatnagar/shim documentation built on May 25, 2017, 11:36 p.m.