[R] Getting a static copy of the object using R.oo

From: Yuri Volchik <yuri.volchik_at_gmail.com>
Date: Tue, 18 Nov 2008 08:30:24 -0800 (PST)

Hi to all,

probably question is to Henrik Bengtsson but may be others can help as well. I have an object of "Class A" with fields which are being changed (updating) dynamically in a loop. I would like to keep all iterations of the object in a list, but when i'm trying to do it i get a reference to the instance of the original object.
myAdynamic[[i]]<-myA;

Is there a way to preserve data structure and current data?

Thanks

-- 
View this message in context: http://www.nabble.com/Getting-a-static-copy-of-the-object-using-R.oo-tp20563074p20563074.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 18 Nov 2008 - 16:37:42 GMT

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 18 Nov 2008 - 17:30:25 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