-2

Say I use the rpart function in R which fits a classification tree to a dataset. How do I then use this tree to classify a new object?

user1066113
  • 889
  • 3
  • 12
  • 19

1 Answers1

1
?predict.rpart # ................

Probably (only a guess in the absence of an R object.)

predict(rtree, type = "class") 
IRTFM
  • 258,963
  • 21
  • 364
  • 487