Re: [R] Passing arguments to a function within a function ...

2012-08-07 Thread christiaan pauw
Thanks Rui It works. On 7 August 2012 11:34, Rui Barradas wrote: > Hello, > > Your problem seems simple, if I understand it correctly. Just add an extra > argument to the caller function, drep(). Christiaan Pauw Nova Institute www.nova.org.za __ R-he

Re: [R] Passing arguments to a function within a function ...

2012-08-07 Thread Rui Barradas
Hello, Your problem seems simple, if I understand it correctly. Just add an extra argument to the caller function, drep(). drep <- function(pop.conc = x, sicklist = adult.CP.mortality, par = "cental estimate", ...) { #> This extra argument dr.out = by(x, x$Name,

[R] Passing arguments to a function within a function ...

2012-08-07 Thread christiaan pauw
Hallo Everybody How do you specify arguments for a function used within another function? Here is my problem: I am reconstructing a calculator for the burden of disease due to air pollution from publications and tools published by the WHO. The calculations make use of published dose-response rel