reverse_splits | R Documentation |
This functions "swaps" the analysis and assessment sets of either a single
rsplit
or all rsplit
s in the splits
column of an rset
object.
reverse_splits(x, ...)
## Default S3 method:
reverse_splits(x, ...)
## S3 method for class 'permutations'
reverse_splits(x, ...)
## S3 method for class 'perm_split'
reverse_splits(x, ...)
## S3 method for class 'rsplit'
reverse_splits(x, ...)
## S3 method for class 'rset'
reverse_splits(x, ...)
x |
An |
... |
Not currently used. |
An object of the same class as x
set.seed(123)
starting_splits <- vfold_cv(mtcars, v = 3)
reverse_splits(starting_splits)
reverse_splits(starting_splits$splits[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.