Re: [R] Decision trees with factors and numericals

2009-11-24 Thread David Winsemius
On Nov 24, 2009, at 8:50 AM, Joel Fürstenberg-Hägg wrote: Does any of you know how to make a decision tree when the data set contains factors and numericals? I've got a data frame with 3 columns, where y and x1 are numerical and x2 contains factors. Is it possible to use the rpart package

[R] Decision trees with factors and numericals

2009-11-24 Thread Joel Fürstenberg-Hägg
Hi all, Does any of you know how to make a decision tree when the data set contains factors and numericals? I've got a data frame with 3 columns, where y and x1 are numerical and x2 contains factors. Is it possible to use the rpart package, and in that case how? Otherwise, is there another