Let's Code!
Getting Started
***NOTE*** this page is currently under construction.
That means more exercises coming your way very soon!
The first thing you need is to download R (https://cran.r-project.org/bin/windows/base/). Once you've done that, download RStudio (https://posit.co/download/rstudio-desktop/). Both downloads are free.
Project Organization
Every project you do should have its own folder. In that folder you should have at least the following sub-folders:
R
This is where you'll keep your RMarkdown Files and other scripts
data
This is where your RAW (never touched) data goes
workingdata
This is where you'll put data as you work on it. It allows you to never touch your raw data
What now?
Well, pick an exercise that sounds appealing to you and download the data and exercise pdf. Create a new folder with the structure described above and put the data in the data folder. Next, open Rstudio from the Desktop (this is the only time you'll do this) and create a new RMarkdown file by clicking green + button on the top left. Name the project. Then save the file in your R subfolder. Exit out of Rstudio completely. Then go to your R subfolder and double click the RMarkdown file, which will open RStudio. I'll explain why you do this later.
Project: English Premier League Soccer
Skills Practiced:
Handling dates
Subsetting datasets
Small tables
Data (taken from https://www.kaggle.com/)
Project: Running 1000 miles in 2015
Skills Practiced:
Merging multiple dataframes into one
Plotting with 2-axes (in ggplot2)
Handling dates and time
Project: Baby Names
Skills practiced:
Subsetting with "or"
Plotting 2 sets of data together (in ggplot)
Data: obtained via code