Displaying 1 result from an estimated 1 matches for "metacall".
Did you mean:
datacall
2013 Feb 26
1
sys.frame() and variables from parent frame
...se a variable from a parent
frame in my callM() function. I would like to solve this by only editing
the callM(function). When I run this code I obtain a empty list, meaning
that eval(ls(),sys.frame(-1)) could not access the variables in the
parent function. Any suggestions? Thanks in advance!
metaCall <- function()
{
NN <- 99
callM()
}
callM <- function()
{
Ls <- eval(ls(),sys.frame(-1))
print(Ls)
### use Ls to call a certain model named M
}
metaCall()
--
Z? Miguel
_______________________________
JM Delgado
Reichenberger St...