If you absolutely need a single file for each iteration, you can also include the iteration number into your output filename.
for(i in 1:dim(your input data)[1]) { results<- your calculation write.csv(results, paste("filename", "_", i, sep="")) } Arnaud Date: Wed, 13 Jan 2010 15:59:37 +0100 From: Alex Roy <alexroy2...@gmail.com> To: r-help@r-project.org Subject: [R] How can I store the results Message-ID: <8bdeb1b51001130659n6341b0e6oe42a029efb7a1...@mail.gmail.com> Content-Type: text/plain Dear R users, I am running a R code which gives me 10 columns and 160 rows. I need to run the code for 100 times and each time I need to store the results in a single file. I do not know how can I store them in a single file without over writting the results? Thanks Alex [[alternative HTML version deleted]] ______________________________________________ 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.