"Stefan Fritsch" <[EMAIL PROTECTED]> wrote:

> I have several output variables which I give back with the list command.
> 
> test <- function      {return(list(a,b,c,d,e,f,g,...))}
> 
> After the usage of the function I want to assign the variables to the output 
> variables.
> 
> result <- test()
> 
> a <- result$a
> b <- result$b
> c <- result$c
> d <- result$d
> ...
> 
> is there a more elegant way to assign these variables, without writing them 
> all down?
> 
> thank you very much for your help!

I don't have a good answer for your question, but I do encourage
you to choose a method that will be readily intelligible to you
when you revisit your code X years later.  

-- 
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to