Introduction to R
Preparation
Follow installation instructions to install R, RStudio, and R packages required for the workshop/course.
Important tips: While solutions will be provided during the sessions, it is important that you actively engage with the material before reviewing them.
Software Installation
In this workshop/course, we will use R and RStudio. Please install both on your machine prior to the start of the workshop/course.
If you are using a company-issued computer, please work with your IT office to install R(the most recent version) and RStudio as soon as possible.
If you are using a personal machine, please follow the instructions below:
Install R
Download the latest version of R here. Follow the installation procedure.
Install RStudio
Download and install the free version of RStudio Desktop here.
Course Overview
Welcome to the Introduction to R module!
Please go through the presentation videos and demos and attempt the exercises in each of the below sections. We highly recommend attempting the exercises before going through the solutions.
Getting ready
Introduction to R
Video Lecture
Slides
Download slides
Student template
Download student template
Instructor solutions
Download instructor solutions
Data manipulation
Video Lecture
Slides
Download slides
Data
Download data
Download data documentation
Student template
Download student template
Instructor solutions
Download instructor solutions
Data visualization
Video Lecture
Slides
Download slides
Student template
Download student template
Instructor solutions
Download instructor solutions
Loops & functions
Video Lecture
Slides
Download slides
Student template
Download student template
Instructor solutions
Download instructor solutions
Matrix algebra
Video Lecture
Slides
Download slides
Demo
Download R demo
Exercise
Download exercise template
Download instructor solutions
Matrix algebra handout
Download handout
This handout is only for your reference.
R tips & debugging
This handout is only for your reference. Right click “Download handout” above and select “Open link in new tab” to open the html file.