Displaying 1 result from an estimated 1 matches for "valuefunc1".
Did you mean:
valuefunc
2003 Dec 09
2
: global and local variables
Hi all
I have a problem pertaining to local and global variables.
Say I have a function defined as follows:
a<-function(x)
{y<x^2}
i.e
a(2)
[1] 4
function b is now defined to take the value of y and do some
manipulation with it. As it stands I dont know how to store the
variable y such that other functions are able to reference its value.
I know that I