[R] Save output

vincent@7d4.com vincent at 7d4.com
Mon Oct 3 13:38:13 CEST 2005


Frank Schmid a écrit :

> Dear R-Mastermind
> Within a while or a for-loop, is there a way that I can save to disk the
> results of the previous calculations at the end of each loop with filenames
> called "file01.Rdata", "file02.Rdata" etc?

as a toy example :

for (i in 1:nbfiles)
  {
  fullname = paste("myfile_",i, sep="");
  write.table(intable, fullname);
  }

see
?paste
hih




More information about the R-help mailing list