EJ Code for R

Here is what I wrote as a first pass. I included my thoughts on answers
as hashtags in the code.  Let me know your thoughts