Hello,

   This is the code to generate the tree 

library(RWeka)
library(randomForest)
library(party)
library(partykit) 

if(require(mlbench, quietly = TRUE) && require(party, quietly = TRUE)) 
m1 <- J48(income2 ~ capital.gain+capital.loss+relationship+marital.status,
data = treino)
#m1 <- J48(income2 ~ ., data = treino)
m1

--
View this message in context: 
http://r.789695.n4.nabble.com/Export-Tree-for-latex-tp4083586p4083880.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to