Link Search Menu Expand Document


Welcome to our workshop on for loops and conditional statements. We hope this workshop assists you in taking your R skills to the next level, allowing you to perform highly customized operations to meet your data analysis needs.

Learning objectives

At the end of this workshop, you will be able to:

  1. Perform advanced, custom operations in R to manipulate and analyze data
  2. Expand knowledge, capability, and flexibility with base R
  3. Be able to create a for loop and conditional statement

Please note that we expect a moderate level of experience in R for this workshop. If you are a beginner, we still welcome you to follow along.


0:00 Welcome and using Zoom
0:05 Introduction
0:10 For loops
0:40 Conditional statements
1:00 Wrap-up and Discussion, optional 30mins practice


This workshop was developed by Jared Connoy (Author) and Ashley Yue Mao (Contributor).