Hello all,

I'm trying to store some objects (class = "svm") , but if I use a list
the objects get somehow converted and I can't retrieve them as objects
of type "svm".
So how to I properly store objects of that kind?

best regards
-----------

library(e1071)

data(iris)
attach(iris)

## classification mode
# default with factor response:
model <- svm(Species ~ ., data = iris)


print(class(model))
models = list()
models = c(model,model)

print(class(models[[1]]))
-----------

______________________________________________
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