Skip to contents

Function for making Decision Trees.

Usage

tree(
  data,
  vars,
  facs,
  target,
  targetLevel,
  train,
  trainLevel,
  showPlot = FALSE
)

Arguments

data

The data as a data frame.

vars

continuous explanatory variables

facs

categorical explanatory variables

target

target variable

targetLevel

.

train

Variable containing Test/Train information

trainLevel

.

showPlot

.

Value

A results object containing:

results$todoa html
results$text1a preformatted
results$text2a preformatted
results$text2aa preformatted
results$text2ba preformatted
results$text3a preformatted
results$text4a html

Examples

# \donttest{
# example will be added
# }