21 Databases

Learning objectives:

  • Use {DBI} to connect to a database and retrieve data.
  • Use {dbplyr} to translate dplyr code to SQL.
library(DBI) 
library(dbplyr) 
library(tidyverse)