I am working on a project where I have to do a lot of repeating and life would be a lot easier if i could address multiple objects in a for loop. To elleborate my question i have come up with a (silly) example
For instance if have done this to create my data:
for (i in 1:10)
{
assign(paste("Season",i, sep = ""),rnorm(10,0,1))
}
So I have Season1, Season2,..,Season10. Is it possible to change the first number of the 10 objects to zero using a for loop. Semi pseudocode looks like this. But of course this does not work.
for (i in 1:10)
{
Seasoni[1]<-0
}
Anyone with a solution?
Stefan