search for: deffunbodypt1

Displaying 2 results from an estimated 2 matches for "deffunbodypt1".

Did you mean: deffunbodypt2
2002 Nov 04
2
Sweave - documenting a long function
.... I have tried various approaches without sucess but I feel sure that someone has done this already. Here is one attempt ============== % First, define the funciton header <<defFunHdr, eval=FALSE>>= x <- function(a =1) @ % Explain the code in the first part of the function <<defFunBodyPt1, eval=FALSE>>= { a <- a+1 @ % Explain the code in the second part of the function <<defFunBodyPt2, eval=FALSE>>= a <- a^2 a } # end of function @ % now bring the chunks together so that Sweave evaluates the function. <<evalFun, echo=FALSE>>= <<defFunHd...
2002 Nov 05
0
summary: Sweave - documenting a long function
.... I have tried various approaches without sucess but I feel sure that someone has done this already. Here is one attempt ============== % First, define the funciton header <<defFunHdr, eval=FALSE>>= x <- function(a =1) @ % Explain the code in the first part of the function <<defFunBodyPt1, eval=FALSE>>= { a <- a+1 @ % Explain the code in the second part of the function <<defFunBodyPt2, eval=FALSE>>= a <- a^2 a } # end of function @ % now bring the chunks together so that Sweave evaluates the function. <<evalFun, echo=FALSE>>= <<defFunHd...