I have a data set with PinNumbers, Cities, Individual Names, Start Data, Variance1, Variance2, Variance3.
I am wanting to use a decision tree to analyze this data in R. I used code:
fit <- rpart(City ~ Variance1 + Variance2 + Variance3,
data = [data set name], model = 'class')
From here I am not sure where I need to go with this to get what I am looking for. I would like to create a decision tree based off the data showing the variance and how they are affected by the different cities.