Hello everybody. I'm trying to send the result of a decision tree for latex, but I do not get with the package(xtable), there is a package that make this export Export this for latex marital.status = Divorced | educational.num <= 12: <=50K (1795.0/90.0) | educational.num > 12 | | hours.per.week <= 41: <=50K (302.0/58.0) | | hours.per.week > 41 | | | educational.num <= 14: <=50K (160.0/59.0) | | | educational.num > 14: >50K (27.0/4.0) marital.status = Married-AF-spouse | educational.num <= 12: <=50K (13.0/1.0) | educational.num > 12: >50K (6.0/1.0) -- View this message in context: http://r.789695.n4.nabble.com/Export-Tree-for-latex-tp4083586p4083586.html Sent from the R help mailing list archive at Nabble.com.
What kind of object it is? How was it generated? It doesn't have a plot method? -- View this message in context: http://r.789695.n4.nabble.com/Export-Tree-for-latex-tp4083586p4083593.html Sent from the R help mailing list archive at Nabble.com.
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.