[R] how to store object without loosing their class property

From: Immanuel B <mane.desk_at_googlemail.com>
Date: Tue, 31 May 2011 15:43:51 +0200

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



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

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


R-help_at_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. Received on Tue 31 May 2011 - 13:47:18 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 31 May 2011 - 14:00:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive