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.
a set of arguments, as in the caret::train function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.