Learn R Programming

randomForest (version 4.6-14)

combine: Combine Ensembles of Trees

Description

Combine two more more ensembles of trees into one.

Usage

combine(...)

Arguments

...

two or more objects of class randomForest, to be combined into one.

Value

An object of class randomForest.

See Also

randomForest, grow

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab