[R] R newbie...

From: David Hajage <dhajage_at_gmail.com>
Date: Wed 07 Dec 2005 - 04:14:33 EST


Hello,

I'm a new user...

I have a function :

calculate <- function(x,y)
{

     z <- x + y
  }
I would like to use the result (z) with another function :

recalculate <- function(...)
{

     a <- z^2
  }

But R says that z does not exist...

How can I use z in an another function ?

Thank you for your answer...

--
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 04:42:51 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:29 EST