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) Ps: Mmean and Gmean are the same size. Msd and Gsd are the size. Thanks -- View this message in context: http://www.nabble.com/Fuctions-help%21-tp20130620p20130620.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.