[R] Fuctions help!

Sarah Goslee sarah.goslee at gmail.com
Thu Oct 23 18:49:43 CEST 2008

On Thu, Oct 23, 2008 at 9:10 AM, Alex99 <loyola9988 at yahoo.com> wrote:
> Hi everyone,
> I have a question about functions. I have two functions:
> Sampling=function(fname,Total,nSample,nPatient){......return(list(Gmean,Gsd))}
> Power=function(alfa,m1,m2,s1,s2,n1,n2){....return(powe)}
> I want to use "Gmean" and "Gsd" which are the returned values from
> "Sampling" function, in "Power" function.
> i.e. when I call "power" I want to be able to have something like:
> Power(.05,Mmean,Gmean,Msd,Gsd,992,100)

Okay, so do that.

Or, you could follow the posting guide, clearly state your question, and
give us a working example, or one as close to working as you can get.
Frankly, I haven't the foggiest idea what you want to do, or what you
are asking.


Sarah Goslee

More information about the R-help mailing list