# NOT RUN {
data(biomass)
# Create the recipe manually
rec <- recipe(x = biomass)
rec
summary(rec)
rec <- rec %>%
add_role(carbon, contains("gen"), sulfur, new_role = "predictor") %>%
add_role(sample, new_role = "id variable") %>%
add_role(dataset, new_role = "splitting variable") %>%
add_role(HHV, new_role = "outcome")
rec
# }
Run the code above in your browser using DataLab