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

new_rset

Constructor for new rset objects


Description

Constructor for new rset objects

Usage

new_rset(splits, ids, attrib = NULL, subclass = character())

Arguments

splits

A list column of rsplits or a tibble with a single column called "splits" with a list column of rsplits.

ids

A character vector or a tibble with one or more columns that begin with "id".

attrib

An optional named list of attributes to add to the object.

subclass

A character vector of subclasses to add.

Details

Once the new rset is constructed, an additional attribute called "fingerprint" is added that is a hash of the rset. This can be used to make sure other objects have the exact same resamples.

Value

An rset object.


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.