search for: local_bar

Displaying 1 result from an estimated 1 matches for "local_bar".

2004 Jun 23
5
assigning from multiple return values
...o, bar)). But what do I do on the recieving end? fn <- function(x) { return(list(foo, bar)) } I know that at this point I could say values.list <- fn(x) and then access values.list[1] values.list[2] But that's hideous. I'd rather be able to say something like list(local_foo, local_bar) <- fn(x) and have the right thing happen. I realize that it's my responsibility to not screw up and say instead list(local_bar, local_foo) Any suggestions? -JT