I'm trying to perform classification with rpart on dataset with 16 variables and 420 observations (the dataset is a subset of http://archive.ics.uci.edu/ml/datasets/Arrhythmia dataset; I only chose certain variables and excluded missing observations).
The code I'm running is below, the issue is that it seems to be stuck in an infinite loop:
library(rpart)
newdata_frame <- data.frame(newdata)
tree <- rpart(class~ ., data=newdata_frame, method="class")
I'm quite new to rpart, hence I don't have many ideas on how to try to solve this. I tried running "tree" on the same dataset and it performs ok.
Any ideas on why rpart could get stuck in an infinite loop? Thanks for the help! Appreciated! L.