In this workshop, we provide an introduction to using SQL to query and retrieve data from relational databases in R. First, we’ll cover what relational databases and SQL are. Then, we’ll use different packages in R to navigate relational databases using SQL.
If you are not familiar with material in R Fundamentals, R Data Wrangling, and R Data Visualization, we recommend attending those workshops first.
After this workshop, you will be able to:
DBI
and dbplyr
to query data from a relational database.This workshop does not cover the following:
Prior experience with R Fundamentals, R Data Wrangling, and R Data Visualization is assumed.
We will use RStudio to go through the workshop materials, which requires installation of both the R language and the RStudio software. Installation instructions.
If you do not have R installed and the materials loaded on your workshop by the time it starts, we strongly recommend using the UC Berkeley Datahub to run the materials for these lessons. Cloud options.