Download the latest version of R from the Comprehensive R Archive Network (CRAN). R is a programming language built for statistical analysis.

Download R Studio which is an IDE built for R. While you can use R without R Studio, R Studio makes life much better.

Introduction resources

If you are new to R I suggest reading through before we start and intro to R.

R for Data Science by Hadley Wickham is a fantastic R textbook.

You might find STOR 390 helpful.

Swirl

swirl is an interactive R tutorial. Install and load the swirl package. Run the following code in the R Studio console.

install.packages('swirl')
library(swirl)

Once the swirl package has loaded you can get started by running

swirl()

There are a few swirl courses. I suggest getting started with R Programming which comes preloaded. You can install other courses

install_course("Exploratory_Data_Analysis")
install_course("Getting_and_Cleaning_Data")
install_course("Data_Analysis")

Once you have installed a course it should show up on the swirl dashboard.