# NOT RUN {
data(biomass)
rec <- recipe(biomass) %>%
add_role(carbon, hydrogen, oxygen, nitrogen, sulfur,
new_role = "predictor") %>%
add_role(HHV, new_role = "outcome") %>%
add_role(sample, new_role = "id variable") %>%
add_role(dataset, new_role = "splitting indicator")
recipe_info <- summary(rec)
recipe_info
has_role("id variable", roles = recipe_info$role)
all_outcomes(roles = recipe_info$role)
# }
Run the code above in your browser using DataLab