split-apply-options This is where I will put my R tutorials on using split-apply, compare this strategy with writing for loops, and provide an hopefully logical introduction to writing functions. Let's see how successful that is.