Learn R Programming

r2pmml (version 0.31.0)

decorate.party: Decorates a "party" object with a "predicted" element.

Description

Decorates a "party" object with a "predicted" element.

Usage

# S3 method for party
decorate(x, ...)

Arguments

x

A "party" object.

...

Arguments to pass on to the "decorate.default" function.

Examples

Run this code
# \donttest{
library("evtree")
library("r2pmml")

data(iris)
iris.party = evtree(Species ~ ., data = iris,
    control = evtree.control(max_depth = 3))
iris.party = decorate(iris.party)
# Please uncomment the next line
#r2pmml(iris.party, file.path(tempdir(), "Iris-Party.pmml"))
# }

Run the code above in your browser using DataLab