Re: [R] R newbie...

From: David Hajage <dhajage_at_gmail.com>
Date: Wed 07 Dec 2005 - 19:06:23 EST

Thank you for all your answers...

I solved my problem thanks to you all !

david

2005/12/6, paul sorenson <sourceforge@metrak.com>:
>
> Return something that can hold more than one value, eg:
>
> calculate <- function(x, y) {
> list(a=x+y, b=x-y)
> }
>
> David Hajage wrote:
> > Thank you for your answer.
> >
> > And what if my first function gives 2 results :
> >
> > calculate <- function(x,y)
> > {
> > a <- x + y
> > b <- x - y
> > }
> >
> > How can I use both a and b in a new function ?
>
>

--
David

	[[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
Received on Wed Dec 07 19:13:23 2005

This archive was generated by hypermail 2.1.8 : Wed 07 Dec 2005 - 20:23:50 EST