treeCl: treeCl function

Description Usage Arguments Value Examples

View source: R/treeCl.R

Description

This function uses several functions to build a classification tree based on data

Usage

1

Arguments

formula

Formula to define dependent and independent variables

data

database

depth

Numeric value to set the depth of a tree

Value

tree object

Examples

1
2
3
4
5
treeCl(Species~Petal.Width+Petal.Length+Sepal.Width,data = iris, depth = 3)

myTree <- treeCl(Species~Petal.Width+Petal.Length+Sepal.Width,data = iris, depth = 3)

plot(myTree)

ernesto3141/treeClass documentation built on Nov. 4, 2019, 11:57 a.m.