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

extractCaretTarget.formula

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

Ensembles of Caret Models

v2.0.1
MIT + file LICENSE
Authors
Zachary A. Deane-Mayer [aut, cre], Jared E. Knowles [aut]
Initial release
2019-12-11

We don't support your browser anymore

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