Completes code block 2 (corr.R) in Coursera R Programming Week 2