Displaying 1 result from an estimated 1 matches for "function_funct".
2002 Sep 06
1
Scope problems - passing an argument from one function to another (LME) within
...owever. Curiously, the other argument (my.data) is passed to LME.
This problem goes away with this: assign("my.subset", my.subset, env = sys.frame()).
It works, but it doesn't feel right. How can I get LME to join the scope of the main function?
Thank you,
Derek Eder
my.function_function(my.data,my.subset="NORM")
{
## call to function LME. Problem: the variable my.subset is not seen by LME ##
# assign("my.subset", my.subset, env = sys.frame()) Now it works! #
my.result_lme( X ~ Y, random=~1|Z, data=my.data, subset= W==my.subset)
}
Derek N. Eder...