Re: [R] Convert Sweave document to a function

2011-03-21 Thread Brian Diggs
On 3/20/2011 12:19 PM, David.Epstein wrote: I like Sweave, which I consider to be a great contribution. I have just written a .Rnw document that comes to about 6 pages of mixed code and mathematical explanation. Now I want to turn the R code into a function. My R code currently contains

[R] Convert Sweave document to a function

2011-03-20 Thread David.Epstein
I like Sweave, which I consider to be a great contribution. I have just written a .Rnw document that comes to about 6 pages of mixed code and mathematical explanation. Now I want to turn the R code into a function. My R code currently contains statements like N-1000 and theta- pi/10. In the next

Re: [R] Convert Sweave document to a function

2011-03-20 Thread Martin Morgan
Hi David -- On 03/20/2011 12:19 PM, David.Epstein wrote: I like Sweave, which I consider to be a great contribution. I have just written a .Rnw document that comes to about 6 pages of mixed code and mathematical explanation. Now I want to turn the R code into a function. My R code currently