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