Report question

Question: Loops in R - Need to use index, anyway to avoid 'for'?