I am trying to loop through a function in R. I want to loop through 62 stored values but the loop only seems to run and save for the last output. I am new to loops and think