Detect if a particular step or check is used in a recipe
Examples
rec <- recipe(Species ~ ., data = iris) %>%
step_intercept()
detect_step(rec, "intercept")
#> [1] TRUE
Detect if a particular step or check is used in a recipe
rec <- recipe(Species ~ ., data = iris) %>%
step_intercept()
detect_step(rec, "intercept")
#> [1] TRUE