Learn R Programming

randomForest (version 4.7-1.2)

grow: Add trees to an ensemble

Description

Add additional trees to an existing ensemble of trees.

Usage

# S3 method for randomForest
grow(x, how.many, ...)

Value

An object of class randomForest, containing how.many

additional trees.

Arguments

x

an object of class randomForest, which contains a forest component.

how.many

number of trees to add to the randomForest object.

...

currently ignored.

Author

Andy Liaw andy_liaw@merck.com

See Also

combine, randomForest

Examples

Run this code
data(iris)
iris.rf <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
iris.rf <- grow(iris.rf, 50)
print(iris.rf)

Run the code above in your browser using DataLab