cartleafs | R Documentation |
Return the number of leafs of a decision tree.
cartleafs(model)
model |
The decision tree. |
The number of leafs.
CART
, cartdepth
, cartinfo
, cartnodes
, cartplot
require (datasets)
data (iris)
model = CART (iris [, -5], iris [, 5])
cartleafs (model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.