subtree: Extract subtree by pruning according to a specified...

Description Usage Arguments Value Note See Also

View source: R/treethresh.R

Description

Extracts a subtree from a tree object of the classes treethresh or wtthresh by pruning according to a specified value of the complexity parameter C.

Usage

1
2
3
4
## S3 method for class 'treethresh'
subtree(object, C)
## S3 method for class 'wtthresh'
subtree(object, C)

Arguments

object

An object of the class treethresh or wtthresh from which a subtree is to be extracted.

C

The value of the complexity parameter C to be used for the pruning.

Value

subtree returns an object of the class treethresh or wtthresh that contains a tree pruned at value C (see the function prune for details on the pruning process).

Note

Use the function prune to carry out the pruning without having to specify the complexity parameter C.

See Also

treethresh, wtthresh, prune


treethresh documentation built on May 1, 2019, 11:16 p.m.