Re: [R] Warning message when returning multiple items

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 31 Jan 2006 - 05:45:08 EST

Return a list:

   f <- function(x) list(x = x, x.squared = x*x)

On 1/30/06, Krish Krishnan <rkrishnan8216@yahoo.com> wrote:
> In my function I am trying to return multiple computed items (separated by commas). The function does what I need, but I get a warning message that multi-argument returns are deprecated. Is this a warning I should heed, or is there a more elegant and warning free way of achieving the same end? Thanks
>
>
>
> ---------------------------------
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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 Tue Jan 31 06:08:23 2006

This archive was generated by hypermail 2.1.8 : Tue 31 Jan 2006 - 08:25:18 EST