# R for Everyone (Advanced Analytics and Graphics) and LaTeX

*Adapted from Jared P. Lander's R for Everyone*

*2020-12-14*

# Chapter 1 Introduction to R

This is an introduction to R and Latex. In compiling this documents, several sources have been consulted, including Jared P. Lander's R for Everyone, Hadley Wickham and Garrett Grolemund's R for Data Science, Dr. Yuleng Zeng's website, Dr. Timothy M. Petersonâ€™s website, Havardâ€™s Math Prefresher, the course offered by DataCamp. Chapter 3 and Chapter 4 are mostly borrowed from Dr. Yuleng Zeng's website resources.

Install the following applications:

- R: https://cloud.r-project.org/
- RStudio: https://www.rstudio.com/products/rstudio/download/#download.
- Install the RStudio Desktop Open Source License
- RStudio is a graphical user interface (GUI) for making the life of using R easier.

- Latex:
- For Mac install MacTeX: http://www.tug.org/mactex/downloading.html.
- For Windows install TeX Live: http://tug.org/texlive/acquire-netinstall.html.
- There are several LaTex editors to choose from. I am using TexPad.

Finally, this document is to be used in-class only. As I (will) mention several times, it borrows and merges a lot of resources online. Also, if you see any mistakes or have suggestions, please do shoot me an email.