Return a list: f <- function(x) list(x = x, x.squared = x*x)
On 1/30/06, Krish Krishnan <[EMAIL PROTECTED]> 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