# 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)
ranged_trans <- rec %>%
step_range(carbon, hydrogen)
ranged_obj <- prep(ranged_trans, training = biomass_tr)
transformed_te <- bake(ranged_obj, biomass_te)
biomass_te[1:10, names(transformed_te)]
transformed_te
tidy(ranged_trans, number = 1)
tidy(ranged_obj, number = 1)
# }
Run the code above in your browser using DataLab