Re: [R] Fuctions help!

2008-10-23 Thread stephen sefick
what are you trying to do? Break the problem down make it reproducible and then maybe we can help. stephen On Thu, Oct 23, 2008 at 9:10 AM, Alex99 <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have a question about functions. I have two functions: > > Sampling=function(fname,Total,nSample,nP

Re: [R] Fuctions help!

2008-10-23 Thread Sarah Goslee
On Thu, Oct 23, 2008 at 9:10 AM, Alex99 <[EMAIL PROTECTED]> 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

Re: [R] Fuctions help!

2008-10-23 Thread Charles C. Berry
See ?with also ?do.call Use of the latter will need to have the names of the returned value match those of formals( Power ) HTH, Chuck On Thu, 23 Oct 2008, Alex99 wrote: Hi everyone, I have a question about functions. I have two functions: Sampling=function(fname,T

[R] Fuctions help!

2008-10-23 Thread Alex99
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,