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",
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
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
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
4 matches
Mail list logo