R/RF2List.R

Defines functions RF2List

Documented in RF2List

RF2List <-
function(rf){
  treeList <- NULL
  treeList$ntree <- rf$ntree
  treeList$list <- vector("list",rf$ntree)
  for(i in 1:treeList$ntree){
    treeList$list[[i]] <- getTree(rf,i,labelVar=FALSE)
  }
  return(treeList)
}

Try the inTrees package in your browser

Any scripts or data that you put into this service are public.

inTrees documentation built on May 29, 2024, 2:39 a.m.