Function for making Decision Trees.

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

if (FALSE) { # example will be added }