combine | R Documentation |
Combine two more more ensembles of trees into one.
combine(...)
... |
two or more objects of class |
An object of class randomForest
.
The confusion
, err.rate
, mse
and rsq
components (as well as the corresponding components in the test
compnent, if exist) of the combined object will be NULL
.
Andy Liaw andy_liaw@merck.com
randomForest
, grow
data(iris)
rf1 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf2 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf3 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf.all <- combine(rf1, rf2, rf3)
print(rf.all)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.