title: Looping in R to extract data
body: <p>I have an object in "R" called p_int. This is a list of 1599 peak intensity numbers.
  Within every 8 values of this list is a monoisotopic peak. This peak is the most abundant (largest peak value) compared to the other 7 peaks.</p>
  
  <p>Therefore what I'd like to do is write a loop which processes p_int in batches of 8.
  So it will take the first 8 values, find the largest value and add this to a new object called "m_iso".
  It will then continue, looking at values 9-16, 17-24, 25-32 etc.</p>
  
  <p>Any advice or code in helping me achieve such a loop would be greatly appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>Stephen.</p>