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@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