Skip to content
Prev 30229 / 398506 Next

creating function bodies using body()

Defining a function is much simpler than that:

tmpfun <- function(a, b=2)
 {  z <- a = b
    z^2         }    #  returns (a + b)^2

But maybe you want the advertised syntax to work.  Please
pardon if I've misjudged the depth of your question.  I've
never tried to use  body().

-  tom blackwell  -  u michigan medical school  -  ann arbor  -
On Fri, 4 Apr 2003 Setzer.Woodrow at epamail.epa.gov wrote: