tree | R Documentation |
Function for making Decision Trees.
tree(
data,
vars,
facs,
target,
targetLevel,
train,
trainLevel,
showPlot = FALSE
)
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 |
. |
A results object containing:
results$todo | a html | ||||
results$text1 | a preformatted | ||||
results$text2 | a preformatted | ||||
results$text2a | a preformatted | ||||
results$text2b | a preformatted | ||||
results$text3 | a preformatted | ||||
results$text4 | a html | ||||
# example will be added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.