reshuffle_rset: "Reshuffle" an rset to re-generate a new rset with the same...

View source: R/misc.R

reshuffle_rsetR Documentation

"Reshuffle" an rset to re-generate a new rset with the same parameters

Description

This function re-generates an rset object, using the same arguments used to generate the original.

Usage

reshuffle_rset(rset)

Arguments

rset

The rset object to be reshuffled

Value

An rset of the same class as rset.

Examples

set.seed(123)
(starting_splits <- group_vfold_cv(mtcars, cyl, v = 3))
reshuffle_rset(starting_splits)


rsample documentation built on May 29, 2024, 11:03 a.m.