Displaying 1 result from an estimated 1 matches for "inlay".
Did you mean:
inlab
2002 Mar 15
1
eval in parent frame: scoping rule confusion
Hi all,
Look at the following "stupid" function that is created just to show the
problem:
outlayer <- function(x)
{
inlayer <- function(z){
e1 <- parent.frame()
eval(expression(y<-log(z)),e1)
}
inlayer(10)
y
}
I have a compilation error when running this. My purpose is to create "y"
variable equal to log(z) in
the frame of "outlay". How can I achieve this?
Thanks a lot in advance!...