1) Download RStudio (The development environment for R) from https://www.rstudio.com/ 2) Download my R Code from my website .txt file and DATA.csv file 3) Copy and paste code into a new R Markdown Project 4) Change filepath (on line 15) in code to match where your DATA.csv file is 5) Run the code! If you receive an error, it is because the command "install.packages" is trying to re-install packages that the system has already installed while running the rest of the code. The solution is really easy. Put a "#" in front of "install.packages" so it looks like this -> #install.packages The # will mark it as a comment, and wont rerun the install command while trying to run the rest of the code.