Last data update: 2014.03.03
|
R: Extract a tree from a forest
getTree.randomUniformForest | R Documentation |
Extract a tree from a forest
Description
get the structure of a tree from a randomUniformForest object.
Usage
getTree.randomUniformForest(object, whichTree, labelVar = TRUE)
Arguments
object |
an object of class randomUniformForest.
|
whichTree |
which tree have to be printed ?
|
labelVar |
if TRUE, names of the variables will be printed, rather than their positions.
|
Value
a data frame representing the raw tree structure
Note
Trees in randomUniformForest package have almost the same structure than trees in the randomForest package.
Author(s)
Saip Ciss saip.ciss@wanadoo.fr
Examples
data(iris)
iris.ruf <- randomUniformForest(Species ~ ., data = iris,
threads = 1, ntree = 20, BreimanBounds = FALSE)
# get the 10th tree
OneTree <- getTree.randomUniformForest(iris.ruf, 10)
Results
|