search for: deffunbodypt2

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

Did you mean: deffunbodypt1
2002 Nov 04
2
Sweave - documenting a long function
...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>>= <<defFunHdr>> <<defFunBodyPt1>> <<defFunBodyPt2>> @ % Finally, show an example of the functio...
2002 Nov 05
0
summary: Sweave - documenting a long function
...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>>= <<defFunHdr>> <<defFunBodyPt1>> <<defFunBodyPt2>> @ % Finally, show an example of the functio...