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

Reply via email to