Chapter 1 Learning objectives

This workshop focuses on basic programming in R.

You will learn how to use control flow (for loops, if, while, repeat, and apply() family functions) methods to prevent code repetition, facilitate organization and run simulations.

You will also learn to write your own functions, and tips to program efficiently.

  1. Recognizing control flow;
  2. Getting comfortable with testing conditions and performing iterations;
  3. Developing your first functions in R;
  4. Discovering how to accelerate your code;
  5. Demonstrating useful R packages for biologists.