Skip to content
Back to formatted view

Raw Message

Message-ID: <1321634583953-4083880.post@n4.nabble.com>
Date: 2011-11-18T16:43:03Z
From: RMSOPS
Subject: Export Tree for latex
In-Reply-To: <1321628585165-4083586.post@n4.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.