Learn how to implement for loops to iterate over data in R.