Skip to content

RWeka prediction

3 messages · Dajiang Liu, Achim Zeileis

#
On Sun, 26 Apr 2009, Dajiang Liu wrote:

            
No, because you do not provide sufficient information (as requested by the 
posting guide pointed to below). For me, this works fine:

library("RWeka")
ldat <- iris[1:140,]
tdat <- iris[-(1:140),]
m <- J48(Species ~ ., data = ldat)
predict(m, newdata = tdat)