labels.rset: Find Labels from rset Object

Description Usage Arguments Value Examples

Description

Produce a vector of resampling labels (e.g. "Fold1") from an 'rset' object. Currently, 'nested_cv' is not supported.

Usage

1
2
3
4
5
## S3 method for class 'rset'
labels(object, make_factor = FALSE, ...)

## S3 method for class 'vfold_cv'
labels(object, make_factor = FALSE, ...)

Arguments

object

An 'rset' object

make_factor

A logical for whether the results should be character or a factor.

...

Not currently used.

Value

A single character or factor vector.

Examples

1

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