Last chance! 50% off unlimited learning
Sale ends in
Functions coercing various objects to objects of class party.
as.party(obj, …)
# S3 method for rpart
as.party(obj, data = TRUE, …)
# S3 method for Weka_tree
as.party(obj, data = TRUE, …)
# S3 method for XMLNode
as.party(obj, …)
pmmlTreeModel(file, …)
as.constparty(obj, …)
as.simpleparty(obj, …)
# S3 method for party
as.simpleparty(obj, …)
# S3 method for simpleparty
as.simpleparty(obj, …)
# S3 method for constparty
as.simpleparty(obj, …)
# S3 method for XMLNode
as.simpleparty(obj, …)
logical. Should the model frame associated with the fitted
obj
be included in the data
of the party
?
a file name of a XML file containing a PMML description of a tree.
additional arguments.
All methods return objects of class party
.
Trees fitted using functions rpart
or
J48
are coerced to party
objects. By default, objects of class constparty
are returned.
When information about the learning sample is available,
party
objects can be coerced to objects of
class constparty
or simpleparty
(see party
for details).
# NOT RUN {
## fit tree using rpart
library("rpart")
rp <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)
## coerce to `constparty'
as.party(rp)
# }
Run the code above in your browser using DataLab