File: reshuffle_rset.Rd

package info (click to toggle)
r-cran-rsample 1.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,872 kB
  • sloc: sh: 13; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{reshuffle_rset}
\alias{reshuffle_rset}
\title{"Reshuffle" an rset to re-generate a new rset with the same parameters}
\usage{
reshuffle_rset(rset)
}
\arguments{
\item{rset}{The \code{rset} object to be reshuffled}
}
\value{
An rset of the same class as \code{rset}.
}
\description{
This function re-generates an rset object, using the same arguments used
to generate the original.
}
\examples{
set.seed(123)
(starting_splits <- group_vfold_cv(mtcars, cyl, v = 3))
reshuffle_rset(starting_splits)

}