prune: Prune a tree

Description Usage Arguments Value

Description

The function prune removes nodes in a tree whose height is greater than a given threshold.

Usage

1
2
3
4
prune(.tree, max_height = 1L)

## S3 method for class 'rtree'
prune(.tree, max_height = 1L)

Arguments

.tree

A tree to be pruned.

max_height

integer. The height imposed to the new tree.

Value

The pruned tree.


oak documentation built on May 1, 2019, 9:13 p.m.

Related to prune in oak...