I am using the R programming language. In a previous question (R Language: Storing Results of a Loop into a Table) I learned how to iterate a loop for fixed values of a variable