| complement {rsample} | R Documentation |
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.
complement(x, ...)
x |
An 'rsplit' object |
... |
Not currently used |
A integer vector.
[fill()]
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]])