powered by
cart.pred(formula, data.train, data.test = NULL, cart.model = NULL, cost.mi = 1, cost.fa = 1)
# Fit CART for the mushrooms dataset mushrooms.cart <- cart.pred(formula = poisonous ~., data.train = mushrooms)
Run the code above in your browser using DataLab