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