Re: [R] function with Multiple Output

2007-03-05 Thread Levent TERLEMEZ
With help of list(), function can return ala of the results. my.fun=function(vector, index){ a=fun.a(vector, index) b=fun.b(vector, index) return(list(a,b)) } Example: R : Copyright 2005, The R Foundation for Statistical Computing Version 2.2.1 (2005-12-20 r36812) ISBN

Re: [R] function with Multiple Output

2007-03-02 Thread jim holtman
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 [EMAIL PROTECTED] wrote: Dear R user, I have a simple question for you: I have created a global function that evoke other subsidiary functions. when

[R] function with Multiple Output

2007-03-01 Thread Claudio Isella
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,