powered by
Return the number of leafs of a decision tree.
cartleafs(model)
The decision tree.
The number of leafs.
CART, cartdepth, cartinfo, cartnodes, cartplot
CART
cartdepth
cartinfo
cartnodes
cartplot
# NOT RUN { require (datasets) data (iris) model = CART (iris [, -5], iris [, 5]) cartleafs (model) # }
Run the code above in your browser using DataLab