Re: [R] Multiple assignments in one statement

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat 09 Jul 2005 - 10:00:00 EST

Check out:
http://tolstoy.newcastle.edu.au/R/help/04/06/1430.html http://tolstoy.newcastle.edu.au/R/help/04/06/1406.html

On 7/8/05, Jeffrey Horner <jeff.horner@vanderbilt.edu> wrote:
> Is this possible?
>
> For instance, I have a function that returns a vector length 3. In one
> statement I'd like to assign each element of the vector to different
> variables. Syntactically, I hoped this would work:
>
> c(x,y,z) <- myfun();
>
> Thanks,
> --
> Jeffrey Horner Computer Systems Analyst School of Medicine
> 615-322-8606 Department of Biostatistics Vanderbilt University
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 09 10:07:41 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:26 EST