Skip to contents

This function creates a recipe object for modeling based on the specified target variable and predictors.

Usage

create_recipe(target_df, target_variable)

Arguments

target_df

A data frame containing the target variable and predictors.

target_variable

A string specifying the name of the target variable.

Value

A recipe object for modeling.

Examples

data("mtcars")
target_df <- target_df(mtcars, "gear", mpg, cyl, disp)
recipe <- create_recipe(target_df, "gear")