R Code
Annotated scripts from lecture, organized by topic.
Code used in class will be posted here. Download to your own computer for use in class
Setup: Installing R & RStudio
- Install R from cran.r-project.org
- Install RStudio from posit.co
Day 1: Getting Started with R
Download these three files and put in their own folder. Assuming you have R and Rstudio installed, start by clicking on the “Project” file.
Day 2: Data Management and more R basics
Keeping it simple - Just one file today - download and put in your class folder
*uses gapminder data so no need for rproject or dataset today
Day 3: Getting to know your data
Day 4: Concepts and Cleaning
Day 5: R is my friend
Day 6: Plotting and Relationships
Day 7: Bivariate Regression
Day 9: Multivariate Regression
Day 10: More Regression and some Experiments
Day 11 Thoughts on Visualization
Day 12 Last Day R Play
Acled Myanmar Data Full (Save as csv and load)
