Data Processing and Visualization in R

Jeff Stevens (he/him)

2025-01-22

Course introduction

Course goal

Source: Allison Horst

Course information

Course structure and materials

  • Before class: Readings

  • During class: Coding

  • After class: Exercises

  • Student and coding hours

  • Course website: dpavir.org

Course information

Assignments

  • Learning journal
  • Exercises
  • Check-ins
  • Projects
  • Wrapped

Course information

Diversity, inclusion, wellness

Source: Allison Horst

Course information

Course culture

  • Futz around and find out

  • Mistakes are OK (they’ll happen a lot)

  • Learn from your mistakes (bug journal?)

  • Ask for help

  • Share successes and failures with others

Questions

Questions about R or the course?

R Introduction

Conventions

  • All code is in monospace font purple text

  • R functions end with parentheses: function()

  • Directory names end with slash: home/

  • Package names are surrounded by curly braces: {tidyverse}

  • Keyboard buttons separate keys with a plus: Ctrl+S

  • These are parentheses (), brackets [], and braces {}

  • Links are in light blue text

Mental model of R

Base R vs. tidyverse

Let’s code!

Introduction coding