On 4/27/2009 8:52 AM, Friedericksen wrote:
Hey guys,
I have a problem: I created a silly for loop without saving the results
on each step. After a while I realised that it will take days to finish
the loop until I get the results.
Is there a way to get the data R saves in working memory or in a
temporary file while runing the loop? So that stoping the loop will not
result in complete data loss?
Thank you very much!
You can use an explicit save() to write out a list of variables (or
save.image() to write out all of them) but then you need to work out how
to restart from one of these images.
Duncan Murdoch
______________________________________________
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.