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 rpartlibrary("rpart")
rp <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)
## coerce to `constparty'as.party(rp)
# }