I have the following for loop which prints numbers from 1 to 10:
for (i in 1:10) {print (i) }
How do I save the results as a vector, inst
Alternatively
my_vector = c() for(i in 1:5){my_vector=c(my_vector,i)} my_vector