dt Excellent
2006-May-05 08:05 UTC
[R] How can I call a function from within another funcion?
I have a main function, say A, on C:/MYFILES. Function A needs to call another function, say B, which resides on the previous path. Gould anybody please tell me what command to use to do this? Many thanks --------------------------------- http://login.yahoo.com/config/mail?.intl=gr [[alternative HTML version deleted]]
Uwe Ligges
2006-May-05 09:19 UTC
[R] How can I call a function from within another funcion?
dt Excellent wrote:> I have a main function, say A, on C:/MYFILES. > Function A needs to call another function, say B, which resides on the previous path. Gould anybody please tell me what command to use to do this?Functions have to be defined in R. Where corresponding files (containing code that defines functions) are located on the hard disc has nothing to do with the scoping rules. If A needs B, B must be defined in A or some other environment in the search path. This might be, for example, the .GlobalEnv or the same package A is from, as well as other attached packages or imported namespaces. Uwe Ligges> Many thanks > > > --------------------------------- > > > http://login.yahoo.com/config/mail?.intl=gr > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html