rpart R Package

(Redirected from R rpart)
Jump to navigation Jump to search

An rpart R Package is an rpart system that is implemented as an R package (that implements an rpart decision tree learning algorithm).


 pubCatTrain2 <- read.csv("~/data/pubCatTrain2.csv", header=T)
 fitPubCatTrain2 <- rpart(Industry ~Total + NULL + P_CE + P_A + M_A + M_CE + M_AU ... PL_HO_1 + BN_HB_1 + P_PT_1, method="class", data=pubCatTrain2)
 plot(fitPubCatTrain2, uniform=TRUE, main="Classification Tree for Publisher Industry")
 text(fitPubCatTrain2, use.n=TRUE, all=TRUE, cex=.8)