Learn R Programming

caretEnsemble (version 4.0.1)

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

Description

This function extracts the y variable from a set of arguments headed to a caret::train model. Since there are 2 methods to call caret::train, this function also has 2 methods.

Usage

extractCaretTarget(...)

Arguments

...

a set of arguments, as in the caret::train function