as.party.ODT {ODRF}R Documentation

ODT as party

Description

To make ODT object to objects of class party.

Usage

## S3 method for class 'ODT'
as.party(obj, data, ...)

Arguments

obj

An object of class ODT.

data

Training data of class data.frame is used to convert the object of class ODT, and it must be the training data data in ODT.

...

Arguments to be passed to methods

Value

An objects of class party.

References

Lee, EK(2017) PPtreeViz: An R Package for Visualizing Projection Pursuit Classification Trees, Journal of Statistical Software.

See Also

ODT party

Examples

data(iris)
tree <- ODT(Species ~ ., data = iris)
tree
plot(tree)
party.tree <- as.party(tree, data = iris)
party.tree
plot(party.tree)


[Package ODRF version 0.0.4 Index]