powered by
Detect if a particular step or check is used in a recipe
detect_step(recipe, name)
Logical indicating if recipes contains given step.
A recipe to check.
Character name of a step or check, omitted the prefix. That is, to check if step_intercept is present, use name = intercept.
step_intercept
name = intercept
rec <- recipe(Species ~ ., data = iris) %>% step_intercept() detect_step(rec, "intercept")
Run the code above in your browser using DataLab