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