Num2Level: internal function

View source: R/Num2Level.R

Num2LevelR Documentation

internal function

Description

internal function

Usage

Num2Level(rfList, splitV)

Arguments

rfList
splitV

Value

data frame with numeric variables converted to categorical variables.

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (rfList, splitV) 
{
    for (i in 1:rfList$ntree) {
        rfList$list[[i]] <- data.frame(rfList$list[[i]])
        rfList$list[[i]][, "prediction"] <- data.frame(dicretizeVector(rfList$list[[i]][, 
            "prediction"], splitV))
        colnames(rfList$list[[i]]) <- c("left daughter", "right daughter", 
            "split var", "split point", "status", "prediction")
    }
    return(rfList)
  }

inTrees documentation built on June 1, 2022, 1:06 a.m.

Related to Num2Level in inTrees...