Learn R Programming

fdm2id (version 0.9.6)

cartdepth: Depth

Description

Return the dept of a decision tree.

Usage

cartdepth(model)

Value

The depth.

Arguments

model

The decision tree.

See Also

CART, cartinfo, cartleafs, cartnodes, cartplot

Examples

Run this code
require (datasets)
data (iris)
model = CART (iris [, -5], iris [, 5])
cartdepth (model)

Run the code above in your browser using DataLab