complement {rsample}R Documentation

Determine the Assessment Samples

Description

Given an 'rsplit' object, 'complement' will determine which of the data rows are contained in the assessment set. To save space, many of the 'rset' objects will not contain indicies for the assessment split.

Usage

complement(x, ...)

Arguments

x

An 'rsplit' object

...

Not currently used

Value

A integer vector.

See Also

[fill()]

Examples

set.seed(28432)
fold_rs <- vfold_cv(mtcars)
head(fold_rs$splits[[1]]$in_id)
fold_rs$splits[[1]]$out_id
complement(fold_rs$splits[[1]])

[Package rsample version 0.0.2 Index]