Skip to content
Prev 73256 / 398498 Next

Multiple assignments in one statement

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,