I am currently updating existing code to assess a large datafile using different periods of analysis. I am trying to replicate a chunk of code that assesses data based on a six