R Code and Markdown files for analysis