R Bootcamp
  • Day 1
  • Day 2
  • Day 3
  • Prerequisites
  • Data
  • About

R Bootcamp

R Bootcamp

Data-Driven Social Science · Two and a half days · August 28 – September 1, 2026

Install R and an IDE

Install R and either RStudio or Positron before the bootcamp. Setup help is available from 1:00–2:00 p.m. on Day 1.

Prerequisites →

Schedule

Friday, August 28, 2p–5:30p, JRR A17

Day 1 · Getting started with R

  • Setup, ergonomics, and packages
  • Types, vectorization, and basic ops
  • Reading, writing, and summarizing data

Slides here.

Monday, August 31, 9a–5p, JRR 399

Day 2 · Programming, typesetting, and tidyverse

  • Functions, loops, and lapply()
  • Quarto and typesetting for professional outputs
  • Tidyverse for better data work, excl. plotting

Base R (AM) slides here.

Quarto (PM) slides here.

Tidyverse (PM) slides here.

Tuesday, September 1, 9a–5p, JRR 399

Day 3 · Visualization, version control, and simulation

  • Base R plots (briefly) and ggplot2
  • Version control offline and online
  • Statistics with R
  • Big exercise: simulations

Visualization slides (AM) here.

Visualization exercise (AM) PDF instructions here.

Visualization exercise (AM) Quarto template here.

Visualization exercise (AM) solutions here.

Version control slides (PM) here.

Probability and simulation slides (PM) here.

Probability and simulation exercise (AM) PDF instructions here.

Probability and simulation exercise (AM) Quarto template here.

Probability and simulation exercise (AM) solutions here.

Days 2 and 3: an hour for lunch, plus short breaks morning and afternoon

Data-Driven Social Science at Princeton University

 

R Bootcamp