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.


paulponcet/oak documentation built on May 14, 2019, 7:21 p.m.