crossv_vfold: Generate cross-validated v-fold test-training pairs

Description Usage Arguments References Examples

View source: R/crossv_vfold.R

Description

Generate cross-validated v-fold test-training pairs

Usage

1
crossv_vfold(n, v = 5L, shuffle = TRUE)

Arguments

n

A positive, scalar integer representing the number of observations (items to choose from).

v

A scalar integer representing the number of folds in cross validation.

shuffle

A flag which indicates whether to randomly assign observations to folds.

References

Examples

1
crossv_vfold(20, v = 5)

jrnold/ramsleep documentation built on May 29, 2019, 11:43 a.m.