R via the Tidyverse

Introduction to R for non-programmers. This lesson set was prepared for Planning Code Camp at UCLA.

The goal of this lesson is to teach novice programmers to write modular code and best practices for using R for data analysis.

Note that this workshop will focus on teaching the fundamentals of the programming language R, and will not teach statistical analysis.

A variety of third party packages are used throughout this workshop. These are not necessarily the best, nor are they comprehensive, but they are packages we find useful, and have been chosen primarily for their usability.


Understand that computers store data and instructions (programs, scripts etc.) in files. Files are organised in directories (folders). Know how to access files not in the working directory by specifying the path.


Setup Download files required for the lesson
00:00 1. Introduction to R and RStudio How to find your way around RStudio?
How to interact with R?
How to install packages?
00:20 2. Project Management With RStudio How can I manage my projects in R?
00:50 3. R Intro basics How can I read data in R?
How can I create a variable in R?
01:25 4. Using tidycensus and leaflet to map Census data
01:25 5. Data Visualization via ggplot2 - Transit data How can I read visualize data in R?
02:20 6. Data Visualization via ggplot2 - Airline Data How can I read visualize data in R?
03:15 7. Reliability Data Preparation How do I prep data for analysis?
How can I merge data from one dataset to another?
03:35 8. Working with Data
03:35 9. Data Wrangling via dplyr
03:35 10. Append csv Files into One Dataframe
03:35 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.