Hi Sachin,
What you have probably is the best way. In the vast majority of
cases, functions have no business doing assignment outside of
themselves. If you find you have a function producing such disparate
output that it makes no sense for all the output to be stored
together, it might be better
Hi
>
> Hi All,
>
> So I figured out how to do multiple outputs, but whats the best/
> recommended way of assigning them.
>
> f<-function{a=1; b=1; list(a,b)}
I get an error
> f<-function{a=1; b=1; list(a,b)}
Error: unexpected '{' in "f<-function{"
and I wonder what do you want.
f<- functio
Hi All,
So I figured out how to do multiple outputs, but whats the best/
recommended way of assigning them.
f<-function{a=1; b=1; list(a,b)}
I want to be able to say assign into a and b straight away rather that
doing a=f()[[1]] and b=f()[[2]]. It would be best if I can get around this
without h
3 matches
Mail list logo