I'm using the rpart package for decision tree classification. I have a data frame with around 4000 features (columns). I want to use all features in rpart()
for my model. How can I do that? Basically, rpart()
will ask me to use the function in this way:
dt <- rpart(class ~ feature1 + feature2 + ....)
My features are words in documents so I have more than 4k features. Each feature is represented by a word. Is there any possibility to use all features without writing them?