decorate.party {r2pmml} | R Documentation |
Decorates a "party" object with a "predicted" element.
Description
Decorates a "party" object with a "predicted" element.
Usage
## S3 method for class 'party'
decorate(x, ...)
Arguments
x |
A "party" object. |
... |
Arguments to pass on to the "decorate.default" function. |
Examples
library("evtree")
library("r2pmml")
data(iris)
iris.party = evtree(Species ~ ., data = iris,
control = evtree.control(max_depth = 3))
iris.party = decorate(iris.party)
r2pmml(iris.party, file.path(tempdir(), "Iris-Party.pmml"))
[Package r2pmml version 0.28.0 Index]