extractCaretTarget.formula: Extracts the target variable from a set of arguments headed...

View source: R/caretList.R

extractCaretTarget.formulaR Documentation

Extracts the target variable from a set of arguments headed to the caret::train.formula function.

Description

This function extracts the y variable from a set of arguments headed to a caret::train.formula model.

Usage

## S3 method for class 'formula'
extractCaretTarget(form, data, ...)

Arguments

form

A formula of the form y ~ x1 + x2 + ...

data

Data frame from which variables specified in formula are preferentially to be taken.

...

ignored


caretEnsemble documentation built on Sept. 20, 2023, 5:08 p.m.