Possible Duplicate:
How to name variables on the fly in R?
Ok this is very basic but I cannot work it out...
In the for loop I would like to create new variable with varying name:
for (i in 1:4)
a$i=i
So my new variables: a1,a2,a3,a4
would have value 1,2,3,4
respectively.
Is there easy and fast way to do this in R?