make_splits: Constructors for split objects

View source: R/misc.R

make_splitsR Documentation

Constructors for split objects

Description

Constructors for split objects

Usage

make_splits(x, ...)

## Default S3 method:
make_splits(x, ...)

## S3 method for class 'list'
make_splits(x, data, class = NULL, ...)

## S3 method for class 'data.frame'
make_splits(x, assessment, ...)

Arguments

x

A list of integers with names "analysis" and "assessment", or a data frame of analysis or training data.

...

Further arguments passed to or from other methods (not currently used).

data

A data frame.

class

An optional class to give the object.

assessment

A data frame of assessment or testing data, which can be empty.


rsample documentation built on Aug. 8, 2022, 9:06 a.m.