R/grow.R

Defines functions grow.randomForest grow.default grow

Documented in grow grow.default grow.randomForest grow.randomForest

#' Grow
#' @export
grow <- function(x, ...) UseMethod("grow")

grow.default <- function(x, ...)
  stop("grow has not been implemented for this class of object")

#' Grow random forest
#' @method grow randomForest
#' @export
grow.randomForest <- function(x, how.many, ...) {
  y <- update(x, ntree=how.many)
  combine(x, y)
}
sumbose/iRF documentation built on March 12, 2021, 7:36 a.m.