yager (version 0.1.0)

folds: Generate a list of index for the n-fold cross-validation

Description

The function folds generates a list of index for the n-fold cross-validation

Usage

folds(idx, n, seed = 1)

Arguments

idx

A vector of index list

n

The number of n folds

seed

The seed value to generate random n-fold index

Value

A list of n-fold index

Examples

Run this code
# NOT RUN {
folds(seq(10), 3, 2020)
# }

Run the code above in your browser using DataCamp Workspace