Learn R Programming

randomForest (version 4.7-1.2)

combine: Combine Ensembles of Trees

Description

Combine two more more ensembles of trees into one.

Usage

combine(...)

Value

An object of class randomForest.

Arguments

...

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

Author

Andy Liaw andy_liaw@merck.com

See Also

randomForest, grow

Examples

Run this code
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