balanced.cv.folds: Create balanced folds for cross validation

Description Usage Arguments Value Examples

View source: R/balanced_data.R

Description

Create balanced folds for cross validation

Usage

1
balanced.cv.folds(..., nfolds = 10)

Arguments

...

vectors representing data

nfolds

number of folds to be created

Value

list with given input, nfolds and result. The result is a list matching the input with foldid attributed to each position.

Examples

1
2
3
balanced.cv.folds(seq(10), seq(11, 15), nfolds = 2)
balanced.cv.folds(seq(10), seq(11, 13), nfolds = 10) # will give a warning
balanced.cv.folds(seq(100), seq(101, 133), nfolds = 10)

loose.rock documentation built on April 30, 2021, 1:06 a.m.