[R] If loop

martin gregory
Fri, 09 Aug 2024 09:20:56 -0000

> On 9. Aug 2024, at 10:45, CALUM POLWART <polc1410 at 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