# NOT RUN {
library(modeldata)
data(biomass)
biomass_tr <- biomass[biomass$dataset == "Training",]
biomass_te <- biomass[biomass$dataset == "Testing",]
rec <- recipe(HHV ~ carbon + hydrogen + oxygen + nitrogen + sulfur,
data = biomass_tr)
quadratic <- rec %>%
step_poly(carbon, hydrogen)
quadratic <- prep(quadratic, training = biomass_tr)
expanded <- bake(quadratic, biomass_te)
expanded
tidy(quadratic, number = 1)
# }
Run the code above in your browser using DataLab