Description Usage Arguments Value
split_x_and_y
splits the input data set into the predictors x
and the target y.
1 | split_x_and_y(data, target = ncol(data))
|
data |
A data frame containing both predictors and target variables. |
target |
The column index or the name of the target variable. If not
provided the target is assumed to be the last column of |
A list containing the predictors (x) and the target (y) variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.