[R] change object name within for loop
Gonçalo Ferraz
gferraz29 at gmail.com
Fri Aug 20 19:07:16 CEST 2010
Hi,
I am writing a for loop that creates one object, say 'outn' on every
round of the loop. I would like the name of each object to include the
index of the loop as in, for example:
out1, out2, out3, ...
And I would like the naming of the object to take place automatically
as the loop moves through?
Similarly, I would like to be able to call different objects (in1,
in2, in3, ...) authomatically through the execution of the loop.
Is there a quick solution for this? Thank you for any help.
I apologize if this question has been addressed recently in this forum
- I could not find an answer online.
Best,
Gonçalo
More information about the R-help
mailing list