[R] If loop

martin gregory @@m@gregory @end|ng |rom |c|oud@com
Fri Aug 9 11:20:56 CEST 2024


> On 9. Aug 2024, at 10:45, CALUM POLWART <polc1410 using gmail.com> wrote:
> 
> Or use <<- assignment I think.  (I usually return, but return can only
> return one object and I think you want two or more
> 

One can return multiple objects by putting them in a list and returning the list.

Martin



More information about the R-help mailing list