Module 7: Programming in R

In this module, we will be extending our knowledge of programming constructs (i.e., like the for-loops we covered in module 3).

Video # 6

In this video, we will use data from my own lab to learn how to do two new programming constructs in R that improve the readability, reproducibility, and control flow of your code.

IF you are well practiced with reading data into R, feel free to read in our existing data objects.

Make an R Notebook for this walk-through tutorial to save all the code you will be learning. We will cover:

Walk-through code

Data files

Associated code and data files are also within the compressed data file.

Next page:

Activity 3: R on a supercomputer