Skip to contents

Apply a cross-validation scheme to split the data into training and testing sets.

Usage

crossval_samples(obj, data, y, ...)

Arguments

obj

A cross-validation control object.

data

A data frame containing the predictors.

y

A vector containing the response variable.

...

Extra arguments passed to the specific cross-validation methods.

Value

A tibble containing training and testing sets for each fold.