How to call a function defined within another function
On 19.10.2011 22:08, S?bastien Bihorel wrote:
Dear R-users, I would need some advices on the proper way to call a particular function. This function is called scope.char and it is embedded in the step.gam function from the gam package. I am trying to call scope.char directly in a script but I did not find the proper way to do so. Is this even possible? If so, what is the proper syntax?
You cannot, since it is only defined in the environment of the function step.gam while that is active. The gam license is "GPL-2", so go ahead. Best, Uwe Ligges
Thank you for your time and help. Sebastien [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.