R Basics Workshop (at UChicago)

I conducted an R Workshop at the University of Chicago. This post contains the materials and code adapted from a Slidify presentation. The full presentation and code can be found on this repo.

Agenda

  1. Installing and Loading Packages
  2. Reading Data into R - using jsonlite package
  3. Reshaping Data (Wide to Long format) - using reshape2 package
  4. Data Manipulation - using dplyr package
  5. Data Visualization - using ggplot2 package

Installing Packages

Exercise 1: Install and load these packages into the R environment


Reading Data into R

Exercise 2: Fetch your IP address


Data Manipulation

Exercise 3a: Come up with a metric for the sports dataset and use dplyr to generate it

Exercise 3b: Explain why the metric is relevant


Data Visualization

Exercise 4: Visualize the sports dataset metric


Summary


Resources

comments powered by Disqus