[R] Warning message when returning multiple items

Gabor Grothendieck ggrothendieck at gmail.com
Mon Jan 30 19:45:08 CET 2006


Return a list:

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


On 1/30/06, Krish Krishnan <rkrishnan8216 at 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 at 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
>




More information about the R-help mailing list