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

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 <- fun

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