First of all, you might try reading the manual.

Second, you might try something like this:

calculate <- function(x,y)
{
    z <- x + y    z
}

recalculate(z)
{
   a <- z^2
   a
}

z <- calculate(x, y)
recalculate(z)

You need to return some value from your functions,
and you need to assign that value to a variable.

Sarah

--
Sarah Goslee
http://www.stringpage.com

	[[alternative HTML version deleted]]


