As we advance through the capabilities of R, we will increasingly take on the development of understanding of key statistical concepts.
I have uploaded some undergraduate-level slides on correlations here:
https://speakerdeck.com/robayedavies/r-class-correlations
— check them out or, better, read a chapter on correlations and regressions in any statistics or data analysis text book.