Course Materials

Day 1

What did we cover?

  • Installing R
  • What is R exactly?
    • Console, Scripts, Global environment
  • Using R as a calculator
  • Assigning objects
  • What’s a function?
  • Vectors
  • What are different types of variables
  • Tibbles, mutate, filter, select, rename, slice
  • Setting a working directory

Class Slides

Day 2

What did we cover?

  • Practice with data cleaning
  • Different types of data
  • More on working with data we care about
  • Learning how to aggregate data using group_by() and summarize()
  • Cleaning data
  • Aggregating data
  • Summarizing a dataframe
  • Summarizing a singel variable
  • Using lists

Class Slides

Live Coding Data

Class Code

The code we wrote together as a class can be found here

Day 3

What did we cover?

  • More practice with mutate(), group_by(), and summarize()
  • Learning more on how to use the factor() function

Class Slides

Olympics Data

Class Code

The code from today’s class can be found here. This largely covers using ggplot().

Day 4

What did we cover?

  • Reviewed each others graphs
  • Reviewed key concepts from the workshop
  • for loops
  • writing functions

Class Slides