[R] problems with for loop

2007-01-16 Thread Jorge Lampurlanes Castel
Hello, With this program I try to repeat analysis for different years. The results of the analysis are not printed when in the loop, except for the year sequence. What is wrong? Thanks a lot. for (i in 92:99){ cat(\n,

Re: [R] problems with for loop

2007-01-16 Thread Michael T. Mader
If you really want the summary() etc to print to STDOUT use cat() or print(). However other ways to post-process results may be preferrable, I think about Sweave, xtable, etc. Regards Michael Jorge Lampurlanes Castel wrote: Hello, With this program I try to repeat analysis for different

Re: [R] problems with for loop

2007-01-16 Thread Chuck Cleland
Jorge Lampurlanes Castel wrote: Hello, With this program I try to repeat analysis for different years. The results of the analysis are not printed when in the loop, except for the year sequence. What is wrong? Thanks a lot. for (i in 92:99){ cat(\n,