Michael's method seems to be working but I still can't get to wrap it in a loop since I cannot get the loop to dynamically change the functions' name, i.e. ff1, ff2, ff3, ... In other words, I would need the first iteration to create the function ff1, the second to create the function ff2, ... Furthermore, does anyone know of a way to call said functions from a loop in a way that the first step of the loop calls ff1, the second calls ff2 and so on?
The 2 problems should be closely related I think. Thanks for the time -- View this message in context: http://r.789695.n4.nabble.com/Creating-functions-with-a-loop-tp4630896p4630938.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ [email protected] 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.

