Completes code block 2 (complete.R) in Coursera R Programming Week 2 programming assignment