[R] function with Multiple Output

Claudio Isella Claudio.isella at ircc.it
Thu Mar 1 12:35:32 CET 2007


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



More information about the R-help mailing list