Re: Generating paragraphs in loops

2011-10-07 Thread Yihui Xie
Use the chunk option results=tex, then use cat() in your R code to output the paragraphs like <>= for(i in 1:10) { cat('now the value of i is ', i, '\n\n') } @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor H

Generating paragraphs in loops

2011-10-07 Thread Shane Siers
Dear users and masters-- I am using Sweave with R-2.13.0, MikTeX 2.9, and LyX 2.0. I would like to be able to use loops in either R or LaTeX to generate paragraphs with a standard text format, but values from R data inserted as appropriate. The number of paragraphs would change as the number of