Learn R Programming

rsample (version 0.0.5)

complement: 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

populate()

Examples

Run this code
# NOT RUN {
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]])
# }

Run the code above in your browser using DataLab