[R] Creating functions with a loop.

Etienne Larrivée-Hardy etienne.larrivee-hardy.1 at ulaval.ca
Tue May 22 19:24:54 CEST 2012


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.



More information about the R-help mailing list