I have a code like this. The while function produces a data frame for the first item of the list for the first year, then it goes to the second year and produces another data fr