Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

labels.rset

Find Labels from rset Object


Description

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

Usage

## 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 a character or a factor.

...

Not currently used.

Value

A single character or factor vector.

Examples

labels(vfold_cv(mtcars))

rsample

General Resampling Infrastructure

v0.1.0
MIT + file LICENSE
Authors
Julia Silge [aut, cre] (<https://orcid.org/0000-0002-3671-836X>), Fanny Chow [aut], Max Kuhn [aut], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.