R: A Deeper Dive


R: A Deeper Dive

Tired of copy and pasting your code 15 times? Annoyed to be constantly subsetting your data to take the mean across groups? This is the workshop for you!

This is a hands-on workshop that builds on pre-existing basic knowledge of the statistical programming language R. We will use the RStudio interface to begin to develop the building-blocks of efficient programming and the skills for dealing with data that has internal structure. This workshop is best suited for folks who have taken an introductory R workshop OR who have done basic manipulations of their data in R.

Through this workshop, you will:

  • Recognize some of the basics of good programming (eg, good code is clean, efficient, and well-commented)
  • Develop tools for basic debugging and a problem-solving workflow in R
  • Describe conceptually how a for loop works, write a simple for loop, apply a for loop to create more efficient code
  • Understand conceptually how functions work and write a simple function
  • Recognize the pros and cons of functions vs loops in R
  • Use dplyr and base R to calculate the same summary statistics multiple ways

Participants must install R and RStudio on their devices.

Prerequisites: This course will assume you can navigate the Rstudio interface, how to read data into R, and save objects to your global environment. You have likely taken an introductory R workshop or taken a class where you used R for a project, or have tried to do your own analysis in R on your own data.

Date: Thursday, February 8, 2024, 6pm – 8pm

Location: Zoom

Instructor: Gavia Lertzman-Lepofsky, PhD student, Department of Ecology and Evolutionary Biology

Register Now (Students)Register Now (Alums)