fill: Add Assessment Indicies

Description Usage Arguments Value Examples

Description

Many 'rsplit' and 'rset' objects do not contain indicators for the assessment samples. 'fill' can be used to populate the slot for the appropriate indices.

Usage

1
fill(x, ...)

Arguments

x

A 'rsplit' and 'rset' object.

...

Not currently used

Value

An object of the same time with the integer indicies.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(28432)
fold_rs <- vfold_cv(mtcars)

fold_rs$splits[[1]]$out_id
complement(fold_rs$splits[[1]])

fill(fold_rs$splits[[1]])$out_id

fold_rs_all <- fill(fold_rs)
fold_rs_all$splits[[1]]$out_id

topepo/rsample documentation built on May 4, 2019, 4:25 p.m.