Suppose I have the following code:
x <- vector(mode="numeric", length=10)
for(i in 1:10)
{
x[i] <- runif(1,0,10)
}
So x
has 10 values. In each of the next steps, I want to add 10 new values to x
. So in step 2, x
would have 20 values, in step 3 it would have 30 values etc. How would I do this?