This helper functions isolates the dependent variable in a data.frame.

set_dependent_variable(.data, dependent_variable)

Arguments

.data

A data.frame; the data to be analyzed.

dependent_variable

A character vector of length one; the dependent variable for this analysis.

Value

A vector, the dependent variable of the analysis.

See also

Other setters: set_categorical_variables, set_column_names, set_cores, set_independent_variables, set_looper_, set_looper, set_measure, set_parallel, set_plot_model_performance, set_plot_predictions, set_preprocess, set_random_state, set_resample