z <- qda(train, cl)
save(z, file = "qda.dat")
load("qda.dat")
predict(qda.dat, test)$class

I'm trying to save z where z <-qda(train, cl) and load z for later use in predict(z, 
test)$class.
I think I successfully saved z by save(z, file = "qda.dat") but when I tried to load 
by load("qda.dat") and
call predict(qda.dat, test)$class, it gives me error 'object qda.dat is not found'.

Does anybody have an idea?

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to