Re: [R] rpart error when constructing a classification tree

2008-02-04 Thread Randy Griffiths
Sorry, I wasn't very helpful. Let me try this again. I have attached a subsample of the data which still gives me the same error as when I use the full data file. I am trying to make a decision tree using rpart. This is my code and output. > data <- read.table("/Users/randygriffiths/Desktop/data",

[R] rpart error when constructing a classification tree

2008-01-30 Thread Randy Griffiths
I am trying to make a decision tree using rpart. This is my code and output. > data <- read.table("/Users/randygriffiths/Desktop/data", header=T) > attach(data) > > library(rpart) > bookings.cart <- rpart(totalRev~., data=data, method="class") > bookings.cart n= 50 node), split, n, loss, yval, (yp

Re: [R] rpart error when constructing a classification tree

2008-01-30 Thread Uwe Ligges
Randy Griffiths wrote: > I am trying to make a decision tree using rpart. The function runs very > quickly considering the size of the data (1742, 163). When I call the > summary command I get this: > >> summary(bookings.cart) > Call: > rpart(formula = totalRev ~ ., data = bookings, method = "cl

[R] rpart error when constructing a classification tree

2008-01-29 Thread Randy Griffiths
I am trying to make a decision tree using rpart. The function runs very quickly considering the size of the data (1742, 163). When I call the summary command I get this: > summary(bookings.cart) Call: rpart(formula = totalRev ~ ., data = bookings, method = "class") n=1741 (1 observation deleted