dlab-berkeley / sql-for-r-users

SQL for R Users, Workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL for R Users

by Jae Yeon Kim

File an issue if you have problems, questions or suggestions.

Overview

SQL is a viable option for anyone working with a large dataset. For this reason, SQL is a must-skill if you intend to work with big data or data-intensive organizations. The workshop aims to demonstrate that SQL is easy to learn, if you already know how to use dplyr package in R. This will be a very hands-on workshop, with live coding.

Learning objectives

  • Learning how to use R and SQL to access and query a database

Prerequisites

  • Familiarity with dplyr package in R

  • No background knowledge in SQL required

Setup

Launch the Binder. Please do so before attending the worskshop as it takes a while (especially, if you do it for the first time).

Or manually install the following packages.

if (!require("pacman")) install.packages("pacman")
pacman::p_load(
    tidyverse, # tidyverse packages
    dbplyr, # database with dplyr
    DBI, # SQL queries
    RSQLite, # SQLite
    nycflights13 # toy data
)

This work is licensed under a Creative Commons Attribution 4.0 International License.

About

SQL for R Users, Workshop


Languages

Language:HTML 100.0%Language:R 0.0%