Hi, ~ well that seems to be a better solution. Question is how much an enviroment for each node costs in terms of save space..
The example code is hard to present, because it is really based on that problem. The frame of the problem is, that I have to write a program that gives each node in a binomial tree a function with individual parameters.. in my case the current stock price at that node. I don't want to create these functions manually.. that would be too much of an overload with a tree even of moderate size. But if I define these functions via the as.function functionality it gives me the above problem. Hope that clarifies the problem a bit thanks again -- View this message in context: http://r.789695.n4.nabble.com/as-function-parameters-tp4620390p4629979.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.