rect {lazy.tree}R Documentation

Test Data for Decision Tree

Description

Test Data for Decision Tree

Usage

rect

Format

A data frame with 50 rows and 7 variables

y

numeric: continuous criterion variable

R

numeric: discrete criterion variable

yc

factor: categorical criterion variable

x1

numeric: the horizontal coodinate

x2

numeric: the vertical coodinate

c1

factor: the horizontal coodinate

c2

factor: the vertical coodinate

Details

This data consist of 50 observations of two dimensional data.

Use below to see the structure:

 X=cbind(rect$x1,rect$x2)
 y=rect$R
 plot( X, type="n" )
 text( X, as.character(y)
     , col=c("red","green","blue","black")[as.numeric(y)] )
 

Source

Generated by author.


[Package lazy.tree version 0.1.5 ]