my.fun=function(vector, index){
   a=fun.a(vector, index)
   b=fun.b(vector, index)
   return(list(a=a, b=b))
   }



On 3/1/07, Claudio Isella <Claudio.isella@ircc.it> wrote:
>
> Dear R user,
>
>
> I have a simple question for you: I have created a global function that
> evoke other subsidiary functions. when I run the global function I want
> to store the outcomes of the of each subsidiary function into a
> variables. an examples
>
> my.fun=function(vector, index){
>    a=fun.a(vector, index)
>    b=fun.b(vector, index)
>    }
>
>
> if i use return() I can only retrive one single results. what can I do
> to store the outcome of the two function in differnt enviroment
> variables?
>
>
> --
> Claudio
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

