Yes thats not not the code for cart model. i mentioned it coz that probably give some understanding on the question. Also, table was fine until i run the above code. but i was trying to predict the train data on test data. summary () command gives the 5 number summary output. I am unable to view the dataset using View().
I got the above output when I ran View() code, which dosent make sense.