[R] How to return multiple values in a function

2008-06-23 Thread Gundala Viswanath
Hi, I apologize for this newbie question. But I can't seem to find in R online manual. 1. How can I return two values in a function? 2. How can I capture the values again of this function? myfunc - function (array) { # do something with array # get something assign to foo and bar

Re: [R] How to return multiple values in a function

2008-06-23 Thread Hans-Joerg Bibiko
On 23 Jun 2008, at 10:23, Gundala Viswanath wrote: I apologize for this newbie question. But I can't seem to find in R online manual. 1. How can I return two values in a function? 2. How can I capture the values again of this function? myfunc - function (array) { # do something with array

Re: [R] How to return multiple values in a function

2008-06-23 Thread Wacek Kusnierczyk
Hans-Joerg Bibiko wrote: On 23 Jun 2008, at 10:23, Gundala Viswanath wrote: I apologize for this newbie question. But I can't seem to find in R online manual. 1. How can I return two values in a function? 2. How can I capture the values again of this function? myfunc - function (array) {

Re: [R] How to return multiple values in a function

2008-06-23 Thread Ted Harding
On 23-Jun-08 09:04:42, Wacek Kusnierczyk wrote: Hans-Joerg Bibiko wrote: On 23 Jun 2008, at 10:23, Gundala Viswanath wrote: I apologize for this newbie question. But I can't seem to find in R online manual. 1. How can I return two values in a function? 2. How can I capture the values again